Enum git_config::values::ColorError
source · [−]pub enum ColorError {
Utf8Conversion(Utf8Error),
InvalidColorItem,
InvalidFormat,
}
Expand description
Variants
Utf8Conversion(Utf8Error)
InvalidColorItem
InvalidFormat
Trait Implementations
sourceimpl Debug for ColorError
impl Debug for ColorError
sourceimpl Display for ColorError
impl Display for ColorError
sourceimpl Error for ColorError
impl Error for ColorError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Utf8Error> for ColorError
impl From<Utf8Error> for ColorError
sourcefn from(err: Utf8Error) -> ColorError
fn from(err: Utf8Error) -> ColorError
Converts to this type from the input type.
sourceimpl PartialEq<ColorError> for ColorError
impl PartialEq<ColorError> for ColorError
sourcefn eq(&self, other: &ColorError) -> bool
fn eq(&self, other: &ColorError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ColorError) -> bool
fn ne(&self, other: &ColorError) -> bool
This method tests for !=
.
impl StructuralPartialEq for ColorError
Auto Trait Implementations
impl RefUnwindSafe for ColorError
impl Send for ColorError
impl Sync for ColorError
impl Unpin for ColorError
impl UnwindSafe for ColorError
Blanket Implementations
impl<T> AsFail for T where
T: Fail,
impl<T> AsFail for T where
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more