#[non_exhaustive]pub enum FormatError<'a> {
Key(&'a str),
Parse(&'a str),
}
Expand description
Error returned when formatting or parsing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<'a> Clone for FormatError<'a>
impl<'a> Clone for FormatError<'a>
Source§fn clone(&self) -> FormatError<'a>
fn clone(&self) -> FormatError<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for FormatError<'a>
impl<'a> Debug for FormatError<'a>
Source§impl Display for FormatError<'_>
impl Display for FormatError<'_>
Source§impl Error for FormatError<'_>
impl Error for FormatError<'_>
1.30.0 · 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()
Source§impl<'a> PartialEq for FormatError<'a>
impl<'a> PartialEq for FormatError<'a>
impl<'a> StructuralPartialEq for FormatError<'a>
Auto Trait Implementations§
impl<'a> Freeze for FormatError<'a>
impl<'a> RefUnwindSafe for FormatError<'a>
impl<'a> Send for FormatError<'a>
impl<'a> Sync for FormatError<'a>
impl<'a> Unpin for FormatError<'a>
impl<'a> UnwindSafe for FormatError<'a>
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