Struct gazetta_core::error::AnnotatedError
[−]
[src]
pub struct AnnotatedError<E> where
E: Error, {
pub location: PathBuf,
pub error: E,
}
Fields
location: PathBuf
error: E
Methods
impl<E> AnnotatedError<E> where
E: Error,
[src]
E: Error,
pub fn new(location: PathBuf, error: E) -> AnnotatedError<E>
[src]
Trait Implementations
impl<E: Debug> Debug for AnnotatedError<E> where
E: Error,
[src]
E: Error,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: Clone> Clone for AnnotatedError<E> where
E: Error,
[src]
E: Error,
fn clone(&self) -> AnnotatedError<E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<AnnotatedError<Error>> for AnnotatedError<RenderError>
[src]
fn from(e: AnnotatedError<Error>) -> AnnotatedError<RenderError>
[src]
Performs the conversion.
impl<E> Error for AnnotatedError<E> where
E: Error,
[src]
E: Error,
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl<E> Display for AnnotatedError<E> where
E: Error,
[src]
E: Error,
Auto Trait Implementations
impl<E> Send for AnnotatedError<E> where
E: Send,
E: Send,
impl<E> Sync for AnnotatedError<E> where
E: Sync,
E: Sync,