Enum graphics::draw_state::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

Derived Implementations

impl Debug for Comparison

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for Comparison

fn clone(&self) -> Comparison

fn clone_from(&mut self, source: &Self)

impl Copy for Comparison

impl Hash for Comparison

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

impl PartialOrd<Comparison> for Comparison

fn partial_cmp(&self, __arg_0: &Comparison) -> Option<Ordering>

fn lt(&self, __arg_0: &Comparison) -> bool

fn le(&self, __arg_0: &Comparison) -> bool

fn gt(&self, __arg_0: &Comparison) -> bool

fn ge(&self, __arg_0: &Comparison) -> bool

impl PartialEq<Comparison> for Comparison

fn eq(&self, __arg_0: &Comparison) -> bool

fn ne(&self, __arg_0: &Comparison) -> bool

impl Ord for Comparison

fn cmp(&self, __arg_0: &Comparison) -> Ordering

impl Eq for Comparison