pub struct BuiltIndex {
pub def: IndexDefinition,
pub entries: Vec<(Vec<Value>, String)>,
}Expand description
A built in-memory index: sorted entries of (composite_key, doc_id).
Fields§
§def: IndexDefinition§entries: Vec<(Vec<Value>, String)>Implementations§
Source§impl BuiltIndex
impl BuiltIndex
Sourcepub fn find_matching(&self, selector: &Value) -> Vec<String>
pub fn find_matching(&self, selector: &Value) -> Vec<String>
Find doc IDs matching a simple equality/range selector on the indexed fields.
Trait Implementations§
Source§impl Clone for BuiltIndex
impl Clone for BuiltIndex
Source§fn clone(&self) -> BuiltIndex
fn clone(&self) -> BuiltIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BuiltIndex
impl RefUnwindSafe for BuiltIndex
impl Send for BuiltIndex
impl Sync for BuiltIndex
impl Unpin for BuiltIndex
impl UnwindSafe for BuiltIndex
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