Enum luminance::depth_stencil::Comparison
source · [−]pub enum Comparison {
Never,
Always,
Equal,
NotEqual,
Less,
LessOrEqual,
Greater,
GreaterOrEqual,
}
Expand description
Comparison to perform for depth / stencil operations. a
is the incoming fragment’s data and b is the fragment’s
data that is already stored.
Variants
Never
Test never succeeds.
Always
Test always succeeds.
Equal
Test succeeds if a == b
.
NotEqual
Test succeeds if a != b
.
Less
Test succeeds if a < b
.
LessOrEqual
Test succeeds if a <= b
.
Greater
Test succeeds if a > b
.
GreaterOrEqual
Test succeeds if a >= b
.
Trait Implementations
sourceimpl Clone for Comparison
impl Clone for Comparison
sourcefn clone(&self) -> Comparison
fn clone(&self) -> Comparison
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Comparison
impl Debug for Comparison
sourceimpl PartialEq<Comparison> for Comparison
impl PartialEq<Comparison> for Comparison
impl Copy for Comparison
impl Eq for Comparison
impl StructuralEq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnwindSafe for Comparison
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more