pub struct InfallibleToFallibleTryDropStrategyAdapter<T: TryDropStrategy, E: Into<Error>> {
pub inner: T,
/* private fields */
}Expand description
An adapter which makes a type which implements TryDropStrategy, an infallible or try drop
strategy which never fails, fallible.
Note that it’s still infallible, it’s just that it will return an Ok.
Fields§
§inner: TThe inner value.
Implementations§
Source§impl<T: TryDropStrategy, E: Into<Error>> InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: TryDropStrategy, E: Into<Error>> InfallibleToFallibleTryDropStrategyAdapter<T, E>
Trait Implementations§
Source§impl<T: TryDropStrategy, E: Into<Error>> AsRef<T> for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: TryDropStrategy, E: Into<Error>> AsRef<T> for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§impl<T: TryDropStrategy, E: Into<Error>> Borrow<T> for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: TryDropStrategy, E: Into<Error>> Borrow<T> for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§impl<T: Clone + TryDropStrategy, E: Clone + Into<Error>> Clone for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: Clone + TryDropStrategy, E: Clone + Into<Error>> Clone for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§fn clone(&self) -> InfallibleToFallibleTryDropStrategyAdapter<T, E>
fn clone(&self) -> InfallibleToFallibleTryDropStrategyAdapter<T, 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<T: Debug + TryDropStrategy, E: Debug + Into<Error>> Debug for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: Debug + TryDropStrategy, E: Debug + Into<Error>> Debug for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§impl<T: Default + TryDropStrategy, E: Default + Into<Error>> Default for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: Default + TryDropStrategy, E: Default + Into<Error>> Default for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§fn default() -> InfallibleToFallibleTryDropStrategyAdapter<T, E>
fn default() -> InfallibleToFallibleTryDropStrategyAdapter<T, E>
Returns the “default value” for a type. Read more
Source§impl<T: TryDropStrategy, E: Into<Error>> Deref for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: TryDropStrategy, E: Into<Error>> Deref for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§impl<T: TryDropStrategy, E: Into<Error>> FallibleTryDropStrategy for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: TryDropStrategy, E: Into<Error>> FallibleTryDropStrategy for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§impl<T: Hash + TryDropStrategy, E: Hash + Into<Error>> Hash for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: Hash + TryDropStrategy, E: Hash + Into<Error>> Hash for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§impl<T: Ord + TryDropStrategy, E: Ord + Into<Error>> Ord for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: Ord + TryDropStrategy, E: Ord + Into<Error>> Ord for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§fn cmp(
&self,
other: &InfallibleToFallibleTryDropStrategyAdapter<T, E>,
) -> Ordering
fn cmp( &self, other: &InfallibleToFallibleTryDropStrategyAdapter<T, 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<T: PartialEq + TryDropStrategy, E: PartialEq + Into<Error>> PartialEq for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: PartialEq + TryDropStrategy, E: PartialEq + Into<Error>> PartialEq for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Source§fn eq(&self, other: &InfallibleToFallibleTryDropStrategyAdapter<T, E>) -> bool
fn eq(&self, other: &InfallibleToFallibleTryDropStrategyAdapter<T, E>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T: PartialOrd + TryDropStrategy, E: PartialOrd + Into<Error>> PartialOrd for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: PartialOrd + TryDropStrategy, E: PartialOrd + Into<Error>> PartialOrd for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: Copy + TryDropStrategy, E: Copy + Into<Error>> Copy for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: Eq + TryDropStrategy, E: Eq + Into<Error>> Eq for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T: TryDropStrategy, E: Into<Error>> StructuralPartialEq for InfallibleToFallibleTryDropStrategyAdapter<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for InfallibleToFallibleTryDropStrategyAdapter<T, E>where
T: Freeze,
impl<T, E> RefUnwindSafe for InfallibleToFallibleTryDropStrategyAdapter<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T, E> Sync for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T, E> Unpin for InfallibleToFallibleTryDropStrategyAdapter<T, E>
impl<T, E> UnwindSafe for InfallibleToFallibleTryDropStrategyAdapter<T, E>where
T: UnwindSafe,
E: 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.