#[repr(C, packed(1))]pub struct ExtentInlineRef {
pub type: u8,
pub offset: U64<LE>,
}
Expand description
This acts as a header for different types of inline extent back references inside extent or metadata items.
Fields§
§type: u8
The type of reference, which corresponds with a value from ExtentInlineRefType
.
This field also determines the semantic importance of offset
.
offset: U64<LE>
This field has different functions depending on the value of type
.
Trait Implementations§
Source§impl AsBytes for ExtentInlineRef
impl AsBytes for ExtentInlineRef
Source§fn as_bytes_mut(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
Source§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
Source§impl Clone for ExtentInlineRef
impl Clone for ExtentInlineRef
Source§fn clone(&self) -> ExtentInlineRef
fn clone(&self) -> ExtentInlineRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExtentInlineRef
impl Debug for ExtentInlineRef
Source§impl FromBytes for ExtentInlineRef
impl FromBytes for ExtentInlineRef
impl Copy for ExtentInlineRef
impl Unaligned for ExtentInlineRef
Auto Trait Implementations§
impl Freeze for ExtentInlineRef
impl RefUnwindSafe for ExtentInlineRef
impl Send for ExtentInlineRef
impl Sync for ExtentInlineRef
impl Unpin for ExtentInlineRef
impl UnwindSafe for ExtentInlineRef
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