pub enum Predicate<V>where
V: PredicateValue,{
All,
Equals(V),
GreaterThan(V),
GreaterThanOrEquals(V),
LessThan(V),
LessThanOrEquals(V),
Range {
lower: Option<Bound<V>>,
upper: Option<Bound<V>>,
},
In(Vec<V>),
StartsWith {
pattern: V,
case_sensitive: bool,
},
EndsWith {
pattern: V,
case_sensitive: bool,
},
Contains {
pattern: V,
case_sensitive: bool,
},
}Expand description
Fully typed predicate ready to be matched against borrowed values.
Variants§
All
Equals(V)
GreaterThan(V)
GreaterThanOrEquals(V)
LessThan(V)
LessThanOrEquals(V)
Range
In(Vec<V>)
StartsWith
EndsWith
Contains
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Predicate<V>where
V: Freeze,
impl<V> RefUnwindSafe for Predicate<V>where
V: RefUnwindSafe,
impl<V> Send for Predicate<V>where
V: Send,
impl<V> Sync for Predicate<V>where
V: Sync,
impl<V> Unpin for Predicate<V>where
V: Unpin,
impl<V> UnwindSafe for Predicate<V>where
V: UnwindSafe,
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