Struct slr_config::Error
[−]
pub struct Error { pub kind: ErrorKind, pub text: String, }
The error type used throughout this crate.
Fields
kind: ErrorKind
text: String
Methods
impl Error
fn new(kind: ErrorKind, text: String) -> Error
fn from_span<T>(span: Span, source: Option<&Source<'l>>, kind: ErrorKind, msg: &str) -> Error
Creates an error from a certain span of the source. The source argument, if set, must be set to the source that was used when the span was created.
Trait Implementations
impl Clone for Error
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Error
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.