pub trait TryDrop: Sized {
    fn try_drop(self) -> Result<(), Self>;
}
Expand description

A type for which some values make sense to be able to drop without further consideration.

Required methods

Drop an instance cleanly. Only works if its value represents “no-operation”.

Implementors