Enum nixterm::ansi::Color [−][src]
Variants
Index(u8)
Rgb(u8, u8, u8)
Trait Implementations
impl Debug for Color
[src]
impl Debug for Color
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Color
[src]
impl Copy for Color
impl Clone for Color
[src]
impl Clone for Color
fn clone(&self) -> Color
[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Color
[src]
impl Eq for Color
impl PartialEq for Color
[src]
impl PartialEq for Color
fn eq(&self, other: &Color) -> bool
[src]
fn eq(&self, other: &Color) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Color) -> bool
[src]
fn ne(&self, other: &Color) -> bool
This method tests for !=
.
impl From<u8> for Color
[src]
impl From<u8> for Color
impl From<(u8, u8, u8)> for Color
[src]
impl From<(u8, u8, u8)> for Color
impl From<&'static str> for Color
[src]
impl From<&'static str> for Color
impl FromStr for Color
[src]
impl FromStr for Color
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Color>
[src]
fn from_str(s: &str) -> Result<Color>
Parses a string s
to return a value of this type. Read more
impl From<Color> for XColor
[src]
impl From<Color> for XColor