pub enum Error {
Parse(ParseError),
ExcessParam(String),
UnknownDirective(String),
MissingValue(String),
Cardinality(String),
FromStr(String),
DuplicateKey(String),
}Expand description
Errors that can occur while parsing or transforming scfg documents.
Variants§
Parse(ParseError)
A syntax error encountered while parsing the scfg document.
ExcessParam(String)
A directive had more parameters than expected.
UnknownDirective(String)
A document had an unknown directive.
MissingValue(String)
An expected item was not found.
Cardinality(String)
The number of values found did not match the expectations.
FromStr(String)
An error occurred converting the input string to the desired type.
DuplicateKey(String)
A duplicate key occurred converting the input string to a map type.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more