pub struct Leaf {
pub offset: u64,
pub data: Bytes,
}
Expand description
A leaf node.
Fields§
§offset: u64
The byte offset of the leaf in the file.
data: Bytes
The data of the leaf.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Leaf
impl<'de> Deserialize<'de> for Leaf
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Leaf> for BaoContentItem
impl From<Leaf> for BaoContentItem
Source§impl From<Leaf> for EncodedItem
impl From<Leaf> for EncodedItem
Auto Trait Implementations§
impl !Freeze for Leaf
impl RefUnwindSafe for Leaf
impl Send for Leaf
impl Sync for Leaf
impl Unpin for Leaf
impl UnwindSafe for Leaf
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