pub enum Operator {
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Re,
ReNeg,
}Expand description
Represents the various operators used for comparing field values in filter expressions.
This enumeration lists the different operators that can be used in filtering expressions. Each variant corresponds to a specific comparison operation between a game field and a value.
The Operator enumeration can be used to build complex filter expressions, allowing the selection of games based on the comparison of field values with specific criteria.
Variants§
Eq
Equals. The field value is equal to the specified value.
Ne
Not Equals. The field value is not equal to the specified value.
Lt
Less Than. The field value is less than the specified value.
Le
Less or Equal. The field value is less than or equal to the specified value.
Gt
Greater Than. The field value is greater than the specified value.
Ge
Greater or Equal. The field value is greater than or equal to the specified value.
Re
Regex. The field value matches the specified regular expression pattern.
ReNeg
Negated Regex. The field value doesn’t match the specified regular expression pattern.
Trait Implementations§
impl Copy for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnsafeUnpin for Operator
impl UnwindSafe for Operator
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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