pub enum Match<'value> {
All,
Equal(&'value PropertyValue),
Range {
min: &'value PropertyValue,
max: &'value PropertyValue,
},
Composite(&'value [PropertyValue]),
}Expand description
Lookup input for a cataloged index.
This type makes index lookup shape explicit: membership indexes accept
Match::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.
Composite(&'value [PropertyValue])
Lookup one ordered composite equality tuple.
Trait Implementations§
Auto Trait Implementations§
impl<'value> Freeze for Match<'value>
impl<'value> RefUnwindSafe for Match<'value>
impl<'value> Send for Match<'value>
impl<'value> Sync for Match<'value>
impl<'value> Unpin for Match<'value>
impl<'value> UnsafeUnpin for Match<'value>
impl<'value> UnwindSafe for Match<'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