Trait binary_layout::FieldMetadata [−][src]
This trait offers access to the metadata of a field in a layout
Associated Types
Loading content...Associated Constants
const OFFSET: usize
[src]
The offset of the field in the layout.
Example
use binary_layout::prelude::*; define_layout!(my_layout, LittleEndian, { field1: u16, field2: i32, field3: u8, }); assert_eq!(0, my_layout::field1::OFFSET); assert_eq!(2, my_layout::field2::OFFSET); assert_eq!(6, my_layout::field3::OFFSET);
Implementors
Loading content...