#[repr(C, packed(1))]pub struct Item {
pub key: Key,
pub offset: U32<LE>,
pub size: U32<LE>,
}
Expand description
For leaf nodes, the node header is followed by a dynamic number of items.
The item data is stored at the end of the node, as pointed to by the offset and size. The contents of the item are specified in the key.
Fields§
§key: Key
The key that contains the ID and contents of this Item.
offset: U32<LE>
Offset relative to the end of the header.
size: U32<LE>
The size of the data.
Trait Implementations§
Source§impl AsBytes for Item
impl AsBytes for Item
Source§fn 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
Source§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
Source§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
Source§impl FromBytes for Item
impl FromBytes for Item
impl Copy for Item
impl Unaligned for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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