pub enum IndexKind {
Equality,
Ordered,
Array,
Text,
}Expand description
A float as bytes that sort the way the float does. What an index can be asked, and how many keys a document gets at its path.
Variants§
Equality
One value at a time. A table from key to posting list and nothing else.
Ordered
One value at a time, or every value between two of them. The same table with a counted B+ tree over its rows.
Array
One element of an array at a time. A document with ["red", "blue"] at
the path is filed under both, so a search for either finds it.
Text
One word of a string at a time, folded to lower case. A document with
"A red bicycle" at the path is filed under a, red and bicycle.
Implementations§
Trait Implementations§
impl Copy for IndexKind
impl Eq for IndexKind
impl StructuralPartialEq for IndexKind
Auto Trait Implementations§
impl Freeze for IndexKind
impl RefUnwindSafe for IndexKind
impl Send for IndexKind
impl Sync for IndexKind
impl Unpin for IndexKind
impl UnsafeUnpin for IndexKind
impl UnwindSafe for IndexKind
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