pub enum CompOperator {
Equals,
NotEquals,
GreaterThan,
LessThan,
GreaterOrEqual,
LessOrEqual,
}Expand description
Represents a comparison operator which is used to filter out individual rolls of a dice roll
Variants§
Equals
Represents the equality comparison (roll == expr)
NotEquals
Represents the inequality comparison (roll != expr)
GreaterThan
Represents the “greater than” comparison (roll > expr)
LessThan
Represents the “less then” comparison (roll < expr)
GreaterOrEqual
Represents the “greater than or equal to” comparison (roll >= expr)
LessOrEqual
Represents the “less than or equal to” comparison (roll <= expr)
Implementations§
Trait Implementations§
Source§impl Clone for CompOperator
impl Clone for CompOperator
Source§fn clone(&self) -> CompOperator
fn clone(&self) -> CompOperator
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 moreSource§impl Debug for CompOperator
impl Debug for CompOperator
Source§impl Display for CompOperator
impl Display for CompOperator
Source§impl FromStr for CompOperator
impl FromStr for CompOperator
Source§impl PartialEq for CompOperator
impl PartialEq for CompOperator
impl Copy for CompOperator
impl Eq for CompOperator
impl StructuralPartialEq for CompOperator
Auto Trait Implementations§
impl Freeze for CompOperator
impl RefUnwindSafe for CompOperator
impl Send for CompOperator
impl Sync for CompOperator
impl Unpin for CompOperator
impl UnwindSafe for CompOperator
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