#[repr(u32)]pub enum DepthFunction {
Never = 512,
Less = 513,
Equal = 514,
LEqual = 515,
Greater = 516,
NotEqual = 517,
GEqual = 518,
Always = 519,
}
Variants§
Never = 512
Less = 513
Equal = 514
LEqual = 515
Greater = 516
NotEqual = 517
GEqual = 518
Always = 519
Trait Implementations§
Source§impl 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)
Source§impl Clone for DepthFunction
impl Clone for DepthFunction
Source§fn clone(&self) -> DepthFunction
fn clone(&self) -> DepthFunction
Returns a copy 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 DepthFunction
impl Debug for DepthFunction
Source§impl Default for DepthFunction
impl Default for DepthFunction
Source§impl From<DepthFunction> for u32
impl From<DepthFunction> for u32
Source§fn from(enum_value: DepthFunction) -> Self
fn from(enum_value: DepthFunction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DepthFunction
impl PartialEq for DepthFunction
Source§impl TryFrom<u32> for DepthFunction
impl TryFrom<u32> for DepthFunction
Source§type Error = TryFromPrimitiveError<DepthFunction>
type Error = TryFromPrimitiveError<DepthFunction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DepthFunction
impl TryFromPrimitive for DepthFunction
const NAME: &'static str = "DepthFunction"
type Primitive = u32
type Error = TryFromPrimitiveError<DepthFunction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DepthFunction
impl Eq for DepthFunction
impl StructuralPartialEq for DepthFunction
Auto Trait Implementations§
impl Freeze for DepthFunction
impl RefUnwindSafe for DepthFunction
impl Send for DepthFunction
impl Sync for DepthFunction
impl Unpin for DepthFunction
impl UnwindSafe for DepthFunction
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