Skip to content

Commit

Permalink
Add masks to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey authored and dzamlo committed Mar 22, 2024
1 parent c8ed322 commit 0a79f34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
/// // `field4` will be read as an `u32` and then converted to `FooBar`.
/// // The setter will take a `FooBar`, and converted back to an `u32`.
/// u32, from into FooBar, field4, set_field4: 10, 0;
/// // `field5` will be read as an `u32` and then converted to `FooBar`.
/// // The setter will take a `FooBar`, and converted back to an `u32`.
/// // The struct will have an associated constant `FIELD5_MASK` of type u64
/// //with the bits of field5 set
/// u32, mask FIELD5_MASK(u64), from into FooBar, field5, set_field5: 10, 0;
/// }
/// # }
/// ```
Expand Down

0 comments on commit 0a79f34

Please sign in to comment.