pub enum SimpleFillerError {
NoSuchKey,
WriteFailed(Error),
}
Expand description
A convenient error type for fillers; you might even like to use it yourself.
You could also use ()
, but this gives you
From<core::fmt::Error>
so that you can use
write!(out, …)?
, and sane core::fmt::Display
and std::error::Error
implementations.
Variants§
NoSuchKey
The map didn’t contain the requested key.
WriteFailed(Error)
Some fmt::Write operation returned an error.
Trait Implementations§
Source§impl Clone for SimpleFillerError
impl Clone for SimpleFillerError
Source§fn clone(&self) -> SimpleFillerError
fn clone(&self) -> SimpleFillerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimpleFillerError
impl Debug for SimpleFillerError
Source§impl Display for SimpleFillerError
impl Display for SimpleFillerError
Source§impl Error for SimpleFillerError
Available on crate feature std
only.
impl Error for SimpleFillerError
Available on crate feature
std
only.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<K, V, W> Filler<W, SimpleFillerError> for &BTreeMap<K, V>
Available on crate feature alloc
only.
impl<K, V, W> Filler<W, SimpleFillerError> for &BTreeMap<K, V>
Available on crate feature
alloc
only.Source§impl<K, V, W> Filler<W, SimpleFillerError> for &HashMap<K, V>
Available on crate feature std
only.
impl<K, V, W> Filler<W, SimpleFillerError> for &HashMap<K, V>
Available on crate feature
std
only.Source§impl From<Error> for SimpleFillerError
impl From<Error> for SimpleFillerError
Source§impl PartialEq for SimpleFillerError
impl PartialEq for SimpleFillerError
impl Eq for SimpleFillerError
impl StructuralPartialEq for SimpleFillerError
Auto Trait Implementations§
impl Freeze for SimpleFillerError
impl RefUnwindSafe for SimpleFillerError
impl Send for SimpleFillerError
impl Sync for SimpleFillerError
impl Unpin for SimpleFillerError
impl UnwindSafe for SimpleFillerError
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