Struct ext4_read_only::structs::ExtentIndex
source · #[repr(C)]pub struct ExtentIndex {
pub ei_blk: U32,
pub ei_leaf_lo: U32,
pub ei_leaf_hi: U16,
pub ei_unused: U16,
}
Fields§
§ei_blk: U32
Indexes logical blocks.
ei_leaf_lo: U32
Points to the physical block of the next level.
ei_leaf_hi: U16
High 16 bits of physical block.
ei_unused: U16
Implementations§
source§impl ExtentIndex
impl ExtentIndex
sourcepub fn target_block_num(&self) -> u64
pub fn target_block_num(&self) -> u64
Block number that this ExtentIndex points to.
Trait Implementations§
source§impl FromBytes for ExtentIndexwhere
U32: FromBytes,
U16: FromBytes,
impl FromBytes for ExtentIndexwhere
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,
source§impl FromZeros for ExtentIndexwhere
U32: FromZeros,
U16: FromZeros,
impl FromZeros for ExtentIndexwhere
U32: FromZeros,
U16: FromZeros,
impl Unaligned for ExtentIndexwhere
U32: Unaligned,
U16: Unaligned,
Auto Trait Implementations§
impl Freeze for ExtentIndex
impl RefUnwindSafe for ExtentIndex
impl Send for ExtentIndex
impl Sync for ExtentIndex
impl Unpin for ExtentIndex
impl UnwindSafe for ExtentIndex
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