pub enum QueryKey<'k, KOwned, KBorrowed = KOwned>{
Matches(MaybeOwned<'k, KOwned, KBorrowed>),
Range(RangeRef<'k, KOwned, KBorrowed>),
Multiple(Vec<MaybeOwned<'k, KOwned, KBorrowed>>),
}Expand description
Filters a View by key.
Variants§
Matches(MaybeOwned<'k, KOwned, KBorrowed>)
Matches all entries with the key provided.
Range(RangeRef<'k, KOwned, KBorrowed>)
Matches all entires with keys in the range provided.
Multiple(Vec<MaybeOwned<'k, KOwned, KBorrowed>>)
Matches all entries that have keys that are included in the set provided.
Implementations§
Source§impl<'a, KOwned, KBorrowed> QueryKey<'a, KOwned, KBorrowed>
impl<'a, KOwned, KBorrowed> QueryKey<'a, KOwned, KBorrowed>
Sourcepub fn serialized(&self) -> Result<SerializedQueryKey, Error>
pub fn serialized(&self) -> Result<SerializedQueryKey, Error>
Converts this key to a serialized format using the Key trait.
Trait Implementations§
Auto Trait Implementations§
impl<'k, KOwned, KBorrowed> Freeze for QueryKey<'k, KOwned, KBorrowed>
impl<'k, KOwned, KBorrowed> RefUnwindSafe for QueryKey<'k, KOwned, KBorrowed>
impl<'k, KOwned, KBorrowed> Send for QueryKey<'k, KOwned, KBorrowed>
impl<'k, KOwned, KBorrowed> Sync for QueryKey<'k, KOwned, KBorrowed>
impl<'k, KOwned, KBorrowed> Unpin for QueryKey<'k, KOwned, KBorrowed>
impl<'k, KOwned, KBorrowed> UnwindSafe for QueryKey<'k, KOwned, KBorrowed>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more