pub struct IdListSlot {
pub key: u32,
pub handle: ListHandle,
pub count: u32,
pub last: u32,
}Expand description
Per-key slot: [key 4 | ListHandle 12 | count u32 | last u32], 24
bytes, Uniform arena. count doubles as the document frequency for
BM25; last is the highest id in the list (the delta base).
Fields§
§key: u32The indexed key (a TermId, a tag’s TermId, an EntityId — the
owner decides; raw here to serve them all).
handle: ListHandleThe list’s chunk chain.
count: u32Number of entries in the list.
last: u32Highest id appended so far (delta base for the next append).
Trait Implementations§
Source§impl Clone for IdListSlot
impl Clone for IdListSlot
Source§fn clone(&self) -> IdListSlot
fn clone(&self) -> IdListSlot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdListSlot
Source§impl Debug for IdListSlot
impl Debug for IdListSlot
impl Eq for IdListSlot
Source§impl PartialEq for IdListSlot
impl PartialEq for IdListSlot
Source§impl Slot for IdListSlot
impl Slot for IdListSlot
impl StructuralPartialEq for IdListSlot
Auto Trait Implementations§
impl Freeze for IdListSlot
impl RefUnwindSafe for IdListSlot
impl Send for IdListSlot
impl Sync for IdListSlot
impl Unpin for IdListSlot
impl UnsafeUnpin for IdListSlot
impl UnwindSafe for IdListSlot
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