Struct ogre::repr::ColorIndexed
source · pub struct ColorIndexed(pub u8);
Expand description
8-bit indexed color.
Tuple Fields§
§0: u8
Trait Implementations§
source§impl Clone for ColorIndexed
impl Clone for ColorIndexed
source§fn clone(&self) -> ColorIndexed
fn clone(&self) -> ColorIndexed
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 ColorIndexed
impl Debug for ColorIndexed
source§impl Default for ColorIndexed
impl Default for ColorIndexed
source§fn default() -> ColorIndexed
fn default() -> ColorIndexed
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ColorIndexed
impl<'de> Deserialize<'de> for ColorIndexed
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ColorIndexed
impl Hash for ColorIndexed
source§impl Ord for ColorIndexed
impl Ord for ColorIndexed
source§fn cmp(&self, other: &ColorIndexed) -> Ordering
fn cmp(&self, other: &ColorIndexed) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ColorIndexed
impl PartialEq for ColorIndexed
source§fn eq(&self, other: &ColorIndexed) -> bool
fn eq(&self, other: &ColorIndexed) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ColorIndexed
impl PartialOrd for ColorIndexed
source§fn partial_cmp(&self, other: &ColorIndexed) -> Option<Ordering>
fn partial_cmp(&self, other: &ColorIndexed) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for ColorIndexed
impl Serialize for ColorIndexed
source§impl<'a> TryFrom<&'a [u8]> for ColorIndexed
impl<'a> TryFrom<&'a [u8]> for ColorIndexed
impl Copy for ColorIndexed
impl Eq for ColorIndexed
impl StructuralPartialEq for ColorIndexed
Auto Trait Implementations§
impl Freeze for ColorIndexed
impl RefUnwindSafe for ColorIndexed
impl Send for ColorIndexed
impl Sync for ColorIndexed
impl Unpin for ColorIndexed
impl UnwindSafe for ColorIndexed
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