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 ColorError
fn clone(&self) -> ColorError
[src]
fn clone(&self) -> ColorError
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 Debug for ColorError
[src]
impl Debug for ColorError
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 Eq for ColorError
[src]
impl Eq for ColorError
impl PartialEq for ColorError
[src]
impl PartialEq for ColorError
fn eq(&self, other: &ColorError) -> bool
[src]
fn eq(&self, other: &ColorError) -> bool
This 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) -> bool
This method tests for !=
.
impl Error for ColorError
[src]
impl Error for ColorError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This 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 ColorError
Auto Trait Implementations
impl Send for ColorError
impl Send for ColorError
impl Sync for ColorError
impl Sync for ColorError