Enum webgl_rc::DepthFunction
source · [−]#[repr(u32)]
pub enum DepthFunction {
Never,
Less,
Equal,
LEqual,
Greater,
NotEqual,
GEqual,
Always,
}Variants
Never
Less
Equal
LEqual
Greater
NotEqual
GEqual
Always
Trait Implementations
sourceimpl CachedSettings for DepthFunction
impl CachedSettings for DepthFunction
fn set(gl: &Gl, value: &Self)
fn read_cached(cache: &impl Deref<Target = SettingsCache>) -> Self
fn write_cached(cache: &mut impl DerefMut<Target = SettingsCache>, value: &Self)
sourceimpl Clone for DepthFunction
impl Clone for DepthFunction
sourcefn clone(&self) -> DepthFunction
fn clone(&self) -> DepthFunction
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 DepthFunction
impl Debug for DepthFunction
sourceimpl Default for DepthFunction
impl Default for DepthFunction
sourceimpl From<DepthFunction> for u32
impl From<DepthFunction> for u32
sourcefn from(enum_value: DepthFunction) -> Self
fn from(enum_value: DepthFunction) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<DepthFunction> for DepthFunction
impl PartialEq<DepthFunction> for DepthFunction
sourcefn eq(&self, other: &DepthFunction) -> bool
fn eq(&self, other: &DepthFunction) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl TryFrom<u32> for DepthFunction
impl TryFrom<u32> for DepthFunction
type Error = TryFromPrimitiveError<DepthFunction>
type Error = TryFromPrimitiveError<DepthFunction>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for DepthFunction
impl TryFromPrimitive for DepthFunction
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DepthFunction
impl Eq for DepthFunction
impl StructuralEq for DepthFunction
impl StructuralPartialEq for DepthFunction
Auto Trait Implementations
impl RefUnwindSafe for DepthFunction
impl Send for DepthFunction
impl Sync for DepthFunction
impl Unpin for DepthFunction
impl UnwindSafe for DepthFunction
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