Enum gfx::state::Comparison
[−]
[src]
pub enum Comparison { Never, Less, LessEqual, Equal, GreaterEqual, Greater, NotEqual, Always, }
A pixel-wise comparison function.
Variants
Never
false
Less
x < y
LessEqual
x <= y
Equal
x == y
GreaterEqual
x >= y
Greater
x > y
NotEqual
x != y
Always
true
Trait Implementations
impl Ord for Comparison
fn cmp(&self, __arg_0: &Comparison) -> Ordering
impl PartialOrd<Comparison> for Comparison
fn partial_cmp(&self, __arg_0: &Comparison) -> Option<Ordering>
impl Eq for Comparison
impl Hash for Comparison
impl Debug for Comparison
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl PartialEq<Comparison> for Comparison
fn eq(&self, __arg_0: &Comparison) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Clone for Comparison
fn clone(&self) -> Comparison
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more