Enum gfx::state::Comparison []

pub enum Comparison {
    Never,
    Less,
    LessEqual,
    Equal,
    GreaterEqual,
    Greater,
    NotEqual,
    Always,
}

A pixel-wise comparison function.

Variants

false

x < y

x <= y

x == y

x >= y

x > y

x != y

true

Trait Implementations

impl Debug for Comparison

Formats the value using the given formatter.

impl Hash for Comparison

impl PartialOrd<Comparison> for Comparison

impl PartialEq<Comparison> for Comparison

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Comparison

impl Copy for Comparison

impl Ord for Comparison

impl Clone for Comparison

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more