#[repr(transparent)]pub struct Shade(_);
Expand description
[docs.microsoft.com] D3DSHADEMODE
Defines constants that describe the supported shading modes.
Implementations
sourceimpl Shade
impl Shade
sourcepub const fn from_unchecked(d3d: D3DSHADEMODE) -> Self
pub const fn from_unchecked(d3d: D3DSHADEMODE) -> Self
Convert from an underlying [winapi] D3D...
type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> D3DSHADEMODE
pub const fn into_inner(self) -> D3DSHADEMODE
Convert back into an underlying [winapi] D3D...
type.
Trait Implementations
sourceimpl Ord for ShadeMode
impl Ord for ShadeMode
sourceimpl PartialOrd<ShadeMode> for ShadeMode
impl PartialOrd<ShadeMode> for ShadeMode
sourcefn partial_cmp(&self, other: &ShadeMode) -> Option<Ordering>
fn partial_cmp(&self, other: &ShadeMode) -> 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 ShadeMode
impl Eq for ShadeMode
impl Pod for ShadeMode
impl StructuralEq for ShadeMode
impl StructuralPartialEq for ShadeMode
Auto Trait Implementations
impl RefUnwindSafe for ShadeMode
impl Send for ShadeMode
impl Sync for ShadeMode
impl Unpin for ShadeMode
impl UnwindSafe for ShadeMode
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