Struct terminal_colour::Colour
[−]
[src]
pub struct Colour(_);
Methods
impl Colour
[src]
fn greyscale(level: u8) -> Result<Self>
[src]
fn rgb(red: u8, green: u8, blue: u8) -> Result<Self>
[src]
fn normal(normal_colour: NormalColour) -> Self
[src]
fn bright(bright_colour: BrightColour) -> Self
[src]
fn code(self) -> u8
[src]
fn from_code(code: u8) -> Self
[src]
fn typ(self) -> ColourVariant
[src]
fn all() -> ColourIter
[src]
Trait Implementations
impl Clone for Colour
[src]
fn clone(&self) -> Colour
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Colour
[src]
impl Debug for Colour
[src]
impl PartialEq for Colour
[src]
fn eq(&self, __arg_0: &Colour) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Colour) -> bool
[src]
This method tests for !=
.
impl Eq for Colour
[src]
impl Hash for Colour
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<ColourVariant> for Colour
[src]
fn from(t: ColourVariant) -> Self
[src]
Performs the conversion.