pub struct AdHocFallibleDropStrategy<F, E>(pub F)
where
F: Fn(Error) -> Result<(), E>,
E: Into<Error>;Expand description
A quick and dirty fallible drop strategy which uses a function.
Tuple Fields§
§0: FImplementations§
Trait Implementations§
Source§impl<F, E> AsMut<F> for AdHocFallibleDropStrategy<F, E>
impl<F, E> AsMut<F> for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> AsRef<F> for AdHocFallibleDropStrategy<F, E>
impl<F, E> AsRef<F> for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> Borrow<F> for AdHocFallibleDropStrategy<F, E>
impl<F, E> Borrow<F> for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> BorrowMut<F> for AdHocFallibleDropStrategy<F, E>
impl<F, E> BorrowMut<F> for AdHocFallibleDropStrategy<F, E>
Source§fn borrow_mut(&mut self) -> &mut F
fn borrow_mut(&mut self) -> &mut F
Mutably borrows from an owned value. Read more
Source§impl<F, E> Clone for AdHocFallibleDropStrategy<F, E>
impl<F, E> Clone for AdHocFallibleDropStrategy<F, E>
Source§fn clone(&self) -> AdHocFallibleDropStrategy<F, E>
fn clone(&self) -> AdHocFallibleDropStrategy<F, E>
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<F, E> Debug for AdHocFallibleDropStrategy<F, E>
impl<F, E> Debug for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> Default for AdHocFallibleDropStrategy<F, E>
impl<F, E> Default for AdHocFallibleDropStrategy<F, E>
Source§fn default() -> AdHocFallibleDropStrategy<F, E>
fn default() -> AdHocFallibleDropStrategy<F, E>
Returns the “default value” for a type. Read more
Source§impl<F, E> Deref for AdHocFallibleDropStrategy<F, E>
impl<F, E> Deref for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> DerefMut for AdHocFallibleDropStrategy<F, E>
impl<F, E> DerefMut for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> FallibleTryDropStrategy for AdHocFallibleDropStrategy<F, E>
impl<F, E> FallibleTryDropStrategy for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> From<F> for AdHocFallibleDropStrategy<F, E>
impl<F, E> From<F> for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> Hash for AdHocFallibleDropStrategy<F, E>
impl<F, E> Hash for AdHocFallibleDropStrategy<F, E>
Source§impl<F, E> Ord for AdHocFallibleDropStrategy<F, E>
impl<F, E> Ord for AdHocFallibleDropStrategy<F, E>
Source§fn cmp(&self, other: &AdHocFallibleDropStrategy<F, E>) -> Ordering
fn cmp(&self, other: &AdHocFallibleDropStrategy<F, E>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F, E> PartialEq for AdHocFallibleDropStrategy<F, E>
impl<F, E> PartialEq for AdHocFallibleDropStrategy<F, E>
Source§fn eq(&self, other: &AdHocFallibleDropStrategy<F, E>) -> bool
fn eq(&self, other: &AdHocFallibleDropStrategy<F, E>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<F, E> PartialOrd for AdHocFallibleDropStrategy<F, E>
impl<F, E> PartialOrd for AdHocFallibleDropStrategy<F, E>
impl<F, E> Copy for AdHocFallibleDropStrategy<F, E>
impl<F, E> Eq for AdHocFallibleDropStrategy<F, E>
impl<F, E> StructuralPartialEq for AdHocFallibleDropStrategy<F, E>
Auto Trait Implementations§
impl<F, E> Freeze for AdHocFallibleDropStrategy<F, E>where
F: Freeze,
impl<F, E> RefUnwindSafe for AdHocFallibleDropStrategy<F, E>where
F: RefUnwindSafe,
impl<F, E> Send for AdHocFallibleDropStrategy<F, E>where
F: Send,
impl<F, E> Sync for AdHocFallibleDropStrategy<F, E>where
F: Sync,
impl<F, E> Unpin for AdHocFallibleDropStrategy<F, E>where
F: Unpin,
impl<F, E> UnwindSafe for AdHocFallibleDropStrategy<F, E>where
F: UnwindSafe,
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.