pub struct LabelRoot {
pub data_len: u64,
pub head: Vec<u8>,
}Expand description
The root of the label index: the 0x05 preamble and root node, and where the data blocks end in the 0x05 body coordinates (SPEC.md §6.4).
Fields§
§data_len: u64Bytes of data blocks (the 0x05 body offsets below this are blocks, the rest are directory nodes).
head: Vec<u8>The 32-byte 0x05 preamble (digest zeroed) followed by the root node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LabelRoot
impl RefUnwindSafe for LabelRoot
impl Send for LabelRoot
impl Sync for LabelRoot
impl Unpin for LabelRoot
impl UnsafeUnpin for LabelRoot
impl UnwindSafe for LabelRoot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more