pub struct DiskKey {
pub objectid: u64,
pub key_type: KeyType,
pub offset: u64,
}Expand description
A parsed btrfs disk key (objectid, type, offset).
Every item and key pointer in a B-tree is addressed by this three-part key. Keys are sorted lexicographically: first by objectid, then type, then offset.
Fields§
§objectid: u64Object this key belongs to (e.g. inode number, tree ID, device ID).
key_type: KeyTypeDiscriminates what kind of data this key addresses.
offset: u64Type-specific offset (e.g. byte offset for extents, directory index).
Implementations§
Trait Implementations§
impl Copy for DiskKey
impl Eq for DiskKey
impl StructuralPartialEq for DiskKey
Auto Trait Implementations§
impl Freeze for DiskKey
impl RefUnwindSafe for DiskKey
impl Send for DiskKey
impl Sync for DiskKey
impl Unpin for DiskKey
impl UnsafeUnpin for DiskKey
impl UnwindSafe for DiskKey
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