We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd8199 commit 71f0e07Copy full SHA for 71f0e07
binrw_derive/src/codegen/typed_builder.rs
@@ -48,14 +48,16 @@ impl<'a> Builder<'a> {
48
49
let res_struct = if define_result {
50
let docs = self.owner_name.map(|owner_name| {
51
+ let (impl_name, impl_fn) = if self.is_write {
52
+ ("BinWrite", "write_options")
53
+ } else {
54
+ ("BinRead", "read_options")
55
+ };
56
format!(
- "Named arguments for [`{}::{}`].",
57
+ "Named arguments for the [`{0}::{1}`](::binrw::{0}::{1}) implementation of [`{2}`].",
58
+ impl_name,
59
+ impl_fn,
60
owner_name,
- if self.is_write {
- "write_options"
- } else {
- "read_options"
- }
61
)
62
});
63
0 commit comments