Enum rustfmt_nightly::Color [−][src]
pub enum Color {
Always,
Never,
Auto,
}Variants
AlwaysNeverAuto
Methods
impl Color[src]
impl Colorpub fn use_colored_tty(&self) -> bool[src]
pub fn use_colored_tty(&self) -> boolWhether we should use a coloured terminal.
Trait Implementations
impl Copy for Color[src]
impl Copy for Colorimpl Clone for Color[src]
impl Clone for Colorfn clone(&self) -> Color[src]
fn clone(&self) -> ColorReturns 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 Colorimpl PartialEq for Color[src]
impl PartialEq for Colorfn eq(&self, other: &Color) -> bool[src]
fn eq(&self, other: &Color) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Debug for Color[src]
impl Debug for Colorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Serialize for Color[src]
impl Serialize for Colorfn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Color[src]
impl<'de> Deserialize<'de> for Colorfn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl FromStr for Color[src]
impl FromStr for Color