pub struct Color {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
Represent a Color in a RGBA format
Fields§
§r: u8Red part of the color
g: u8Green part of the color
b: u8Blue part of the color
a: u8Alpha part of the color
Implementations§
Source§impl Color
impl Color
Sourcepub const VERY_DARK_GREY: Color
pub const VERY_DARK_GREY: Color
Very Dark Grey Color
Sourcepub const VERY_DARK_RED: Color
pub const VERY_DARK_RED: Color
Very Dark Red Color
Sourcepub const DARK_YELLOW: Color
pub const DARK_YELLOW: Color
Dark Yellow Color
Sourcepub const VERY_DARK_YELLOW: Color
pub const VERY_DARK_YELLOW: Color
Very Dark Yellow Color
Sourcepub const DARK_GREEN: Color
pub const DARK_GREEN: Color
Dark Green Color
Sourcepub const VERY_DARK_GREEN: Color
pub const VERY_DARK_GREEN: Color
Very Dark Green Color
Sourcepub const VERY_DARK_CYAN: Color
pub const VERY_DARK_CYAN: Color
Very Dark Cyan Color
Sourcepub const VERY_DARK_BLUE: Color
pub const VERY_DARK_BLUE: Color
Very Dark Blue Color
Sourcepub const DARK_MAGENTA: Color
pub const DARK_MAGENTA: Color
Dark Magenta Color
Sourcepub const VERY_DARK_MAGENTA: Color
pub const VERY_DARK_MAGENTA: Color
Very Dark Magenta Color
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more