pub trait TryDrop: Sized {
    // Required method
    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§

source

fn try_drop(self) -> Result<(), Self>

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

Implementations on Foreign Types§

source§

impl TryDrop for ()

source§

fn try_drop(self) -> Result<(), Self>

Implementors§

source§

impl<A, B> TryDrop for SameOrOther<A, B>

source§

impl<A: AssetId, B: Balance, OnDrop: HandleImbalanceDrop<A, B>, OppositeOnDrop: HandleImbalanceDrop<A, B>> TryDrop for frame_support::traits::tokens::fungibles::Imbalance<A, B, OnDrop, OppositeOnDrop>

source§

impl<B: Balance, OnDrop: HandleImbalanceDrop<B>, OppositeOnDrop: HandleImbalanceDrop<B>> TryDrop for frame_support::traits::tokens::fungible::Imbalance<B, OnDrop, OppositeOnDrop>