pub struct TomlError { /* private fields */ }
Expand description
Type representing a TOML parse error
Implementations§
Trait Implementations§
source§impl Display for TomlError
impl Display for TomlError
Displays a TOML parse error
Example
TOML parse error at line 1, column 10
|
1 | 00:32:00.a999999
| ^
Unexpected a
Expected digit
While parsing a Time
While parsing a Date-Time
source§impl Error for TomlError
impl Error for TomlError
source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl PartialEq<TomlError> for TomlError
impl PartialEq<TomlError> for TomlError
impl Eq for TomlError
impl StructuralEq for TomlError
impl StructuralPartialEq for TomlError
Auto Trait Implementations§
impl RefUnwindSafe for TomlError
impl Send for TomlError
impl Sync for TomlError
impl Unpin for TomlError
impl UnwindSafe for TomlError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.