#[repr(u8)]pub enum SectionKind {
Show 18 variants
Meta = 0,
TokenFst = 1,
PostingOffsets = 2,
PostingsByDoc = 3,
PostingsByScore = 4,
PairOffsets = 5,
PairBlobs = 6,
NgramFst = 7,
NgramOffsets = 8,
NgramBlobs = 9,
GeohashFst = 10,
GeohashOffsets = 11,
GeohashBlobs = 12,
FilterFst = 13,
FilterOffsets = 14,
FilterBlobs = 15,
DocOffsets = 16,
DocBlobs = 17,
}Variants§
Meta = 0
JSON Meta.
TokenFst = 1
fst::Map: token → TokenId.
PostingOffsets = 2
Offsets, in entries, into the two postings sections.
PostingsByDoc = 3
Per token, (doc u32, boost f32) sorted by doc.
PostingsByScore = 4
Per token, doc u32 sorted like Redis ZREVRANGE.
PairOffsets = 5
Offsets, in bytes, into PairBlobs, per TokenId.
PairBlobs = 6
Serialized RoaringBitmap
NgramFst = 7
fst::Map: edge ngram → entry, then offsets and bitmaps of TokenId.
NgramOffsets = 8
NgramBlobs = 9
GeohashFst = 10
fst::Map: geohash → entry, then offsets and bitmaps of DocId.
GeohashOffsets = 11
GeohashBlobs = 12
FilterFst = 13
fst::Map: key|value → entry, then offsets and bitmaps of DocId.
FilterOffsets = 14
FilterBlobs = 15
DocOffsets = 16
Offsets, in bytes, into DocBlobs, per DocId.
DocBlobs = 17
zlib-compressed JSON documents.
Implementations§
Source§impl SectionKind
impl SectionKind
pub const ALL: [SectionKind; 18]
Trait Implementations§
Source§impl Clone for SectionKind
impl Clone for SectionKind
impl Copy for SectionKind
Source§impl Debug for SectionKind
impl Debug for SectionKind
impl Eq for SectionKind
Source§impl Hash for SectionKind
impl Hash for SectionKind
Source§impl PartialEq for SectionKind
impl PartialEq for SectionKind
impl StructuralPartialEq for SectionKind
Auto Trait Implementations§
impl Forget for SectionKind
impl Freeze for SectionKind
impl Move for SectionKind
impl RefUnwindSafe for SectionKind
impl Send for SectionKind
impl Sync for SectionKind
impl Unpin for SectionKind
impl UnsafeUnpin for SectionKind
impl UnwindSafe for SectionKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.