pub enum Comparison {
Never = 0,
Less = 1,
Equal = 2,
LessEqual = 3,
Greater = 4,
NotEqual = 5,
GreaterEqual = 6,
Always = 7,
}
Expand description
A pixel-wise comparison function.
Variants§
Never = 0
false
Less = 1
x < y
Equal = 2
x == y
LessEqual = 3
x <= y
Greater = 4
x > y
NotEqual = 5
x != y
GreaterEqual = 6
x >= y
Always = 7
true
Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§fn clone(&self) -> Comparison
fn clone(&self) -> Comparison
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 Comparison
impl Debug for Comparison
Source§impl Hash for Comparison
impl Hash for Comparison
Source§impl Ord for Comparison
impl Ord for Comparison
Source§fn cmp(&self, other: &Comparison) -> Ordering
fn cmp(&self, other: &Comparison) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Comparison
impl PartialEq for Comparison
Source§impl PartialOrd for Comparison
impl PartialOrd for Comparison
impl Copy for Comparison
impl Eq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Freeze for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnwindSafe for Comparison
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