Enum ruma::push::ComparisonOperator
source · [−]pub enum ComparisonOperator {
Eq,
Lt,
Gt,
Ge,
Le,
}
Expand description
One of ==
, <
, >
, >=
or <=
.
Used by RoomMemberCountIs
. Defaults to ==
.
Variants
Eq
Equals
Lt
Less than
Gt
Greater than
Ge
Greater or equal
Le
Less or equal
Trait Implementations
sourceimpl Clone for ComparisonOperator
impl Clone for ComparisonOperator
sourcefn clone(&self) -> ComparisonOperator
fn clone(&self) -> ComparisonOperator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ComparisonOperator
impl Debug for ComparisonOperator
sourceimpl Default for ComparisonOperator
impl Default for ComparisonOperator
sourcefn default() -> ComparisonOperator
fn default() -> ComparisonOperator
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ComparisonOperator> for ComparisonOperator
impl PartialEq<ComparisonOperator> for ComparisonOperator
sourcefn eq(&self, other: &ComparisonOperator) -> bool
fn eq(&self, other: &ComparisonOperator) -> bool
impl Copy for ComparisonOperator
impl Eq for ComparisonOperator
impl StructuralEq for ComparisonOperator
impl StructuralPartialEq for ComparisonOperator
Auto Trait Implementations
impl RefUnwindSafe for ComparisonOperator
impl Send for ComparisonOperator
impl Sync for ComparisonOperator
impl Unpin for ComparisonOperator
impl UnwindSafe for ComparisonOperator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.