pub struct Key {
pub objectid: u64,
pub item_type: u32,
pub offset: u64,
}Expand description
A compound B-tree key: (objectid, item_type, offset).
Items in a btrfs tree are ordered by this 136-bit compound value:
(objectid << 72) | (item_type << 64) | offset.
The three fields are not independent ranges — they form a single
ordered tuple.
Fields§
§objectid: u64Object this key belongs to (e.g. inode number, tree ID, device ID).
item_type: u32Item type: a BTRFS_*_KEY constant from crate::raw.
offset: u64Type-specific offset (e.g. byte offset for extents, parent ID for backrefs).
Implementations§
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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