Enum 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

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: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialOrd 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 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