pub struct PayloadEntry {
pub count: u32,
pub offsets: Vec<Offset>,
}Expand description
A collection of offsets for duplicate keys.
Fields§
§count: u32Number of duplicates (including the original key)
offsets: Vec<Offset>Offsets for each duplicate
Implementations§
Source§impl PayloadEntry
impl PayloadEntry
Sourcepub fn add_offset(&mut self, offset: Offset)
pub fn add_offset(&mut self, offset: Offset)
Add an offset to the entry.
Sourcepub fn serialized_size(&self) -> usize
pub fn serialized_size(&self) -> usize
Serialized size: 4 bytes for count + 8 bytes per offset.
Trait Implementations§
Source§impl Debug for PayloadEntry
impl Debug for PayloadEntry
Auto Trait Implementations§
impl Freeze for PayloadEntry
impl RefUnwindSafe for PayloadEntry
impl Send for PayloadEntry
impl Sync for PayloadEntry
impl Unpin for PayloadEntry
impl UnsafeUnpin for PayloadEntry
impl UnwindSafe for PayloadEntry
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