#[repr(transparent)]pub struct Cmp(_);
Expand description
[docs.microsoft.com] D3DCMPFUNC
Defines the supported compare functions.
Implementations
sourceimpl Cmp
impl Cmp
sourcepub const fn from_unchecked(d3d: D3DCMPFUNC) -> Self
pub const fn from_unchecked(d3d: D3DCMPFUNC) -> Self
Convert from an underlying [winapi] D3D...
type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> D3DCMPFUNC
pub const fn into_inner(self) -> D3DCMPFUNC
Convert back into an underlying [winapi] D3D...
type.
sourceimpl CmpFunc
impl CmpFunc
pub const Never: CmpFunc = CmpFunc(D3DCMP_NEVER)
pub const Less: CmpFunc = CmpFunc(D3DCMP_LESS)
pub const Equal: CmpFunc = CmpFunc(D3DCMP_EQUAL)
pub const LessEqual: CmpFunc = CmpFunc(D3DCMP_LESSEQUAL)
pub const Greater: CmpFunc = CmpFunc(D3DCMP_GREATER)
pub const NotEqual: CmpFunc = CmpFunc(D3DCMP_NOTEQUAL)
pub const GreaterEqual: CmpFunc = CmpFunc(D3DCMP_GREATEREQUAL)
pub const Always: CmpFunc = CmpFunc(D3DCMP_ALWAYS)
Trait Implementations
sourceimpl Ord for CmpFunc
impl Ord for CmpFunc
sourceimpl PartialOrd<CmpFunc> for CmpFunc
impl PartialOrd<CmpFunc> for CmpFunc
sourcefn partial_cmp(&self, other: &CmpFunc) -> Option<Ordering>
fn partial_cmp(&self, other: &CmpFunc) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for CmpFunc
impl Eq for CmpFunc
impl Pod for CmpFunc
impl StructuralEq for CmpFunc
impl StructuralPartialEq for CmpFunc
Auto Trait Implementations
impl RefUnwindSafe for CmpFunc
impl Send for CmpFunc
impl Sync for CmpFunc
impl Unpin for CmpFunc
impl UnwindSafe for CmpFunc
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