pub struct DefaultNotFound;
Expand description
Error returned if there is no default value.
Trait Implementations§
Source§impl Clone for DefaultNotFound
impl Clone for DefaultNotFound
Source§fn clone(&self) -> DefaultNotFound
fn clone(&self) -> DefaultNotFound
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 DefaultNotFound
impl Debug for DefaultNotFound
Source§impl Display for DefaultNotFound
impl Display for DefaultNotFound
Source§impl Error for DefaultNotFound
impl Error for DefaultNotFound
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 PartialEq for DefaultNotFound
impl PartialEq for DefaultNotFound
impl Copy for DefaultNotFound
impl Eq for DefaultNotFound
impl StructuralPartialEq for DefaultNotFound
Auto Trait Implementations§
impl Freeze for DefaultNotFound
impl RefUnwindSafe for DefaultNotFound
impl Send for DefaultNotFound
impl Sync for DefaultNotFound
impl Unpin for DefaultNotFound
impl UnwindSafe for DefaultNotFound
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<V> TryDefault<V> for V
impl<V> TryDefault<V> for V
Source§default fn try_default() -> Result<V, DefaultNotFound>
default fn try_default() -> Result<V, DefaultNotFound>
If the implementor implements Default, then this will return
Option::Some(Default::default())
. Read more