#[non_exhaustive]pub struct FileExtent {
pub logical_offset: u64,
pub len: u64,
pub phys_block_num: u64,
}Expand description
One file extent (a j_file_extent_val_t plus its logical offset).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.logical_offset: u64Logical offset within the file (from the record key).
len: u64Length in bytes (len_and_flags & J_FILE_EXTENT_LEN_MASK).
phys_block_num: u64Starting physical block (0 = sparse hole).
Trait Implementations§
Source§impl Clone for FileExtent
impl Clone for FileExtent
Source§fn clone(&self) -> FileExtent
fn clone(&self) -> FileExtent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FileExtent
Auto Trait Implementations§
impl Freeze for FileExtent
impl RefUnwindSafe for FileExtent
impl Send for FileExtent
impl Sync for FileExtent
impl Unpin for FileExtent
impl UnsafeUnpin for FileExtent
impl UnwindSafe for FileExtent
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