Enum grep_printer::ColorError [−][src]
pub enum ColorError {
UnrecognizedOutType(String),
UnrecognizedSpecType(String),
UnrecognizedColor(String, String),
UnrecognizedStyle(String),
InvalidFormat(String),
}An error that can occur when parsing color specifications.
Variants
UnrecognizedOutType(String)This occurs when an unrecognized output type is used.
UnrecognizedSpecType(String)This occurs when an unrecognized spec type is used.
UnrecognizedColor(String, String)This occurs when an unrecognized color name is used.
UnrecognizedStyle(String)This occurs when an unrecognized style attribute is used.
InvalidFormat(String)This occurs when the format of a color specification is invalid.
Trait Implementations
impl Clone for ColorError[src]
impl Clone for ColorErrorfn clone(&self) -> ColorError[src]
fn clone(&self) -> ColorErrorReturns 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 Debug for ColorError[src]
impl Debug for ColorErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for ColorError[src]
impl Eq for ColorErrorimpl PartialEq for ColorError[src]
impl PartialEq for ColorErrorfn eq(&self, other: &ColorError) -> bool[src]
fn eq(&self, other: &ColorError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ColorError) -> bool[src]
fn ne(&self, other: &ColorError) -> boolThis method tests for !=.
impl Error for ColorError[src]
impl Error for ColorErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for ColorError[src]
impl Display for ColorErrorAuto Trait Implementations
impl Send for ColorError
impl Send for ColorErrorimpl Sync for ColorError
impl Sync for ColorError