Struct ext4_read_only::structs::Extent
source · #[repr(C)]pub struct Extent {
pub e_blk: U32,
pub e_len: U16,
pub e_start_hi: U16,
pub e_start_lo: U32,
}
Fields§
§e_blk: U32
First logical block.
e_len: U16
Number of blocks.
e_start_hi: U16
High 16 bits of physical block.
e_start_lo: U32
Low 32 bits of physical block.
Implementations§
Trait Implementations§
source§impl FromBytes for Extentwhere
U32: FromBytes,
U16: FromBytes,
impl FromBytes for Extentwhere
U32: FromBytes,
U16: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
impl Unaligned for Extentwhere
U32: Unaligned,
U16: Unaligned,
Auto Trait Implementations§
impl Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnwindSafe for Extent
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