[][src]Struct termcolor::ParseColorError

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


kind: ParseColorErrorKindgiven: String


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.