pub enum IndexLookup<'value> {
All,
Equal(&'value PropertyValue),
Range {
min: &'value PropertyValue,
max: &'value PropertyValue,
},
CompositeEqual(&'value [PropertyValue]),
}Expand description
Lookup input for a cataloged index.
This type makes index lookup shape explicit: membership indexes accept
IndexLookup::All, single-property indexes accept scalar equality or
range inputs, and composite equality indexes accept an ordered value tuple.
§Performance
Copying this value is O(1).
Variants§
All
Lookup every subject represented by a membership-style index.
Equal(&'value PropertyValue)
Lookup one scalar equality value.
Range
Lookup one inclusive scalar range.
Fields
§
min: &'value PropertyValueInclusive lower bound.
§
max: &'value PropertyValueInclusive upper bound.
CompositeEqual(&'value [PropertyValue])
Lookup one ordered composite equality tuple.
Trait Implementations§
Source§impl<'value> Clone for IndexLookup<'value>
impl<'value> Clone for IndexLookup<'value>
Source§fn clone(&self) -> IndexLookup<'value>
fn clone(&self) -> IndexLookup<'value>
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 moreSource§impl<'value> Debug for IndexLookup<'value>
impl<'value> Debug for IndexLookup<'value>
impl<'value> Copy for IndexLookup<'value>
Auto Trait Implementations§
impl<'value> Freeze for IndexLookup<'value>
impl<'value> RefUnwindSafe for IndexLookup<'value>
impl<'value> Send for IndexLookup<'value>
impl<'value> Sync for IndexLookup<'value>
impl<'value> Unpin for IndexLookup<'value>
impl<'value> UnsafeUnpin for IndexLookup<'value>
impl<'value> UnwindSafe for IndexLookup<'value>
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