pub enum PropertyPredicate {
GreaterThan(PropertyValue),
GeaterOrEqualTo(PropertyValue),
LessThan(PropertyValue),
LessOrEqualTo(PropertyValue),
EqualTo(PropertyValue),
Contain(Vec<PropertyValue>),
}Variants§
GreaterThan(PropertyValue)
GeaterOrEqualTo(PropertyValue)
LessThan(PropertyValue)
LessOrEqualTo(PropertyValue)
EqualTo(PropertyValue)
Contain(Vec<PropertyValue>)
Implementations§
Source§impl PropertyPredicate
impl PropertyPredicate
pub fn eval(&self, value: &PropertyValue) -> bool
Trait Implementations§
Source§impl Clone for PropertyPredicate
impl Clone for PropertyPredicate
Source§fn clone(&self) -> PropertyPredicate
fn clone(&self) -> PropertyPredicate
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 PropertyPredicate
impl RefUnwindSafe for PropertyPredicate
impl Send for PropertyPredicate
impl Sync for PropertyPredicate
impl Unpin for PropertyPredicate
impl UnwindSafe for PropertyPredicate
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