Struct btrfs_no_std::ExtentDataRef
source · [−]#[repr(C, packed)]pub struct ExtentDataRef {
pub root: U64<LE>,
pub objectid: U64<LE>,
pub offset: U64<LE>,
pub count: U32<LE>,
}
Expand description
Contains an indirect back reference for a file data extent.
Immediately follows an ExtentInlineRef
. See that documentation for more details.
Fields
root: U64<LE>
The object ID for the file tree that references this extent.
objectid: U64<LE>
The object ID of the inode that contains the extent data that references this extent.
offset: U64<LE>
The offset within the file that corresponds to this extent.
count: U32<LE>
The reference count being held.
Trait Implementations
sourceimpl AsBytes for ExtentDataRef
impl AsBytes for ExtentDataRef
sourcefn 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
sourcefn write_to<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to bytes
. Read more
sourcefn write_to_prefix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to the prefix of bytes
. Read more
sourcefn write_to_suffix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to the suffix of bytes
. Read more
sourceimpl Clone for ExtentDataRef
impl Clone for ExtentDataRef
sourcefn clone(&self) -> ExtentDataRef
fn clone(&self) -> ExtentDataRef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExtentDataRef
impl Debug for ExtentDataRef
sourceimpl FromBytes for ExtentDataRef
impl FromBytes for ExtentDataRef
sourcefn read_from<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from bytes
. Read more
sourcefn read_from_prefix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from_prefix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from the prefix of bytes
. Read more
sourcefn read_from_suffix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from_suffix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from the suffix of bytes
. Read more
sourcefn new_zeroed() -> Self
fn new_zeroed() -> Self
Creates an instance of Self
from zeroed bytes.
impl Copy for ExtentDataRef
impl Unaligned for ExtentDataRef
Auto Trait Implementations
impl RefUnwindSafe for ExtentDataRef
impl Send for ExtentDataRef
impl Sync for ExtentDataRef
impl Unpin for ExtentDataRef
impl UnwindSafe for ExtentDataRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more