pub struct Layout {
pub le: bool,
pub big: bool,
}Expand description
Byte order and offset width.
Fields§
§le: bool§big: boolImplementations§
Source§impl Layout
impl Layout
pub fn u16(self, d: &[u8], at: u64) -> Option<u16>
pub fn u32(self, d: &[u8], at: u64) -> Option<u32>
pub fn u64(self, d: &[u8], at: u64) -> Option<u64>
pub fn header_len(self) -> u64
pub fn count_len(self) -> u64
pub fn entry_len(self) -> u64
Sourcepub fn inline_cap(self) -> u64
pub fn inline_cap(self) -> u64
Bytes a value may occupy inside its entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more