[][src]Struct termcolor::ParseColorError

pub struct ParseColorError {
    pub kind: ParseColorErrorKind,
    pub given: String,
}

Fields

kind: ParseColorErrorKindgiven: String

Methods

impl ParseColorError[src]

pub fn invalid(&self) -> &str[src]

Return the string that couldn't be parsed as a valid color.

Trait Implementations

impl Clone for ParseColorError[src]

impl Debug for ParseColorError[src]

impl Display for ParseColorError[src]

impl Eq for ParseColorError[src]

impl Error for ParseColorError[src]

impl PartialEq<ParseColorError> for ParseColorError[src]

impl StructuralEq for ParseColorError[src]

impl StructuralPartialEq for ParseColorError[src]

Auto Trait Implementations

impl RefUnwindSafe for ParseColorError

impl Send for ParseColorError

impl Sync for ParseColorError

impl Unpin for ParseColorError

impl UnwindSafe for ParseColorError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.