#[repr(i32)]
pub enum CompareOp {
Never,
Less,
Equal,
LessOrEqual,
Greater,
NotEqual,
GreaterOrEqual,
Always,
}
Expand description
Specifies how two values should be compared to decide whether a test passes or fails.
Used for both depth testing and stencil testing.
Variants
Never
The test never passes.
Less
The test passes if value < reference_value
.
Equal
The test passes if value == reference_value
.
LessOrEqual
The test passes if value <= reference_value
.
Greater
The test passes if value > reference_value
.
NotEqual
The test passes if value != reference_value
.
GreaterOrEqual
The test passes if value >= reference_value
.
Always
The test always passes.
Trait Implementations
impl Copy for CompareOp
impl Eq for CompareOp
impl StructuralEq for CompareOp
impl StructuralPartialEq for CompareOp
Auto Trait Implementations
impl RefUnwindSafe for CompareOp
impl Send for CompareOp
impl Sync for CompareOp
impl Unpin for CompareOp
impl UnwindSafe for CompareOp
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