pub enum RenderColor {
RGB(u8, u8, u8),
}Expand description
Defines various palettes capabling of describing the colour of a pixel.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RenderColor
impl Clone for RenderColor
Source§fn clone(&self) -> RenderColor
fn clone(&self) -> RenderColor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RenderColor
impl Debug for RenderColor
Source§impl Ord for RenderColor
impl Ord for RenderColor
Source§fn cmp(&self, other: &RenderColor) -> Ordering
fn cmp(&self, other: &RenderColor) -> Ordering
1.21.0 (const: unstable) · 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 RenderColor
impl PartialEq for RenderColor
Source§fn eq(&self, other: &RenderColor) -> bool
fn eq(&self, other: &RenderColor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RenderColor
impl PartialOrd for RenderColor
Source§impl Serialize for RenderColor
impl Serialize for RenderColor
impl Eq for RenderColor
impl StructuralPartialEq for RenderColor
Auto Trait Implementations§
impl Freeze for RenderColor
impl RefUnwindSafe for RenderColor
impl Send for RenderColor
impl Sync for RenderColor
impl Unpin for RenderColor
impl UnsafeUnpin for RenderColor
impl UnwindSafe for RenderColor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.