#[repr(transparent)]pub struct MCS(_);Expand description
[docs.microsoft.com] D3DMATERIALCOLORSOURCE
Defines the location at which a color or color component must be accessed for lighting calculations.
Implementations
sourceimpl MCS
impl MCS
sourcepub const fn from_unchecked(d3d: D3DMATERIALCOLORSOURCE) -> Self
pub const fn from_unchecked(d3d: D3DMATERIALCOLORSOURCE) -> Self
Convert from an underlying [winapi] D3D... type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> D3DMATERIALCOLORSOURCE
pub const fn into_inner(self) -> D3DMATERIALCOLORSOURCE
Convert back into an underlying [winapi] D3D... type.
sourceimpl MaterialColorSource
impl MaterialColorSource
pub const Material: MaterialColorSource = MaterialColorSource(D3DMCS_MATERIAL)
pub const Color1: MaterialColorSource = MaterialColorSource(D3DMCS_COLOR1)
pub const Color2: MaterialColorSource = MaterialColorSource(D3DMCS_COLOR2)
Trait Implementations
sourceimpl Clone for MaterialColorSource
impl Clone for MaterialColorSource
sourcefn clone(&self) -> MaterialColorSource
fn clone(&self) -> MaterialColorSource
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 Default for MaterialColorSource
impl Default for MaterialColorSource
sourceimpl From<MaterialColorSource> for D3DMATERIALCOLORSOURCE
impl From<MaterialColorSource> for D3DMATERIALCOLORSOURCE
sourceimpl Hash for MaterialColorSource
impl Hash for MaterialColorSource
sourceimpl Ord for MaterialColorSource
impl Ord for MaterialColorSource
sourceimpl PartialEq<MaterialColorSource> for MaterialColorSource
impl PartialEq<MaterialColorSource> for MaterialColorSource
sourcefn eq(&self, other: &MaterialColorSource) -> bool
fn eq(&self, other: &MaterialColorSource) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MaterialColorSource) -> bool
fn ne(&self, other: &MaterialColorSource) -> bool
This method tests for !=.
sourceimpl PartialOrd<MaterialColorSource> for MaterialColorSource
impl PartialOrd<MaterialColorSource> for MaterialColorSource
sourcefn partial_cmp(&self, other: &MaterialColorSource) -> Option<Ordering>
fn partial_cmp(&self, other: &MaterialColorSource) -> 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
sourceimpl Zeroable for MaterialColorSource
impl Zeroable for MaterialColorSource
impl Copy for MaterialColorSource
impl Eq for MaterialColorSource
impl Pod for MaterialColorSource
impl StructuralEq for MaterialColorSource
impl StructuralPartialEq for MaterialColorSource
Auto Trait Implementations
impl RefUnwindSafe for MaterialColorSource
impl Send for MaterialColorSource
impl Sync for MaterialColorSource
impl Unpin for MaterialColorSource
impl UnwindSafe for MaterialColorSource
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