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”.

Implementations on Foreign Types§

Implementors§

impl<T: Config, GetCurrencyId: Get<T::CurrencyId>> TryDrop for PositiveImbalance<T, GetCurrencyId>

impl<T: Config, GetCurrencyId: Get<T::CurrencyId>> TryDrop for NegativeImbalance<T, GetCurrencyId>

impl<T: Config<I>, I: 'static> TryDrop for PositiveImbalance<T, I>

impl<T: Config<I>, I: 'static> TryDrop for NegativeImbalance<T, I>