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§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§fn clone(&self) -> Comparison
fn clone(&self) -> Comparison
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Comparison
impl Debug for Comparison
Source§impl PartialEq for Comparison
impl PartialEq for Comparison
impl Copy for Comparison
impl Eq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Freeze for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnwindSafe for Comparison
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more