[−][src]Enum ansi_colour::ColourVariant
Variants
Normal(NormalColour)
Bright(BrightColour)
Rgb(RgbColour)
GreyScale(GreyScaleColour)
Methods
impl ColourVariant
[src]
pub fn code(self) -> u8
[src]
pub fn colour(self) -> Colour
[src]
pub const fn from_rgb24_components(red: u8, green: u8, blue: u8) -> Self
[src]
pub const fn from_rgb24(rgb24: Rgb24) -> Self
[src]
Trait Implementations
impl PartialEq<ColourVariant> for ColourVariant
[src]
fn eq(&self, other: &ColourVariant) -> bool
[src]
fn ne(&self, other: &ColourVariant) -> bool
[src]
impl Clone for ColourVariant
[src]
fn clone(&self) -> ColourVariant
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<ColourVariant> for Colour
[src]
fn from(t: ColourVariant) -> Self
[src]
impl From<Colour> for ColourVariant
[src]
impl Eq for ColourVariant
[src]
impl Copy for ColourVariant
[src]
impl Hash for ColourVariant
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
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 Debug for ColourVariant
[src]
Auto Trait Implementations
impl Send for ColourVariant
impl Sync for ColourVariant
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,