Enum ruma_common::push::ComparisonOperator
source · pub enum ComparisonOperator {
Eq,
Lt,
Gt,
Ge,
Le,
}
Expand description
One of ==
, <
, >
, >=
or <=
.
Used by RoomMemberCountIs
. Defaults to ==
.
Variants§
Trait Implementations§
source§impl Clone for ComparisonOperator
impl Clone for ComparisonOperator
source§fn clone(&self) -> ComparisonOperator
fn clone(&self) -> ComparisonOperator
Returns a copy 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 moresource§impl Debug for ComparisonOperator
impl Debug for ComparisonOperator
source§impl Default for ComparisonOperator
impl Default for ComparisonOperator
source§fn default() -> ComparisonOperator
fn default() -> ComparisonOperator
Returns the “default value” for a type. Read more
source§impl PartialEq for ComparisonOperator
impl PartialEq for ComparisonOperator
impl Copy for ComparisonOperator
impl Eq for ComparisonOperator
impl StructuralPartialEq for ComparisonOperator
Auto Trait Implementations§
impl Freeze for ComparisonOperator
impl RefUnwindSafe for ComparisonOperator
impl Send for ComparisonOperator
impl Sync for ComparisonOperator
impl Unpin for ComparisonOperator
impl UnwindSafe for ComparisonOperator
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.