referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::TryDrop

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§

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

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl TryDrop for ()

§

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

Implementors§

§

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

§

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

§

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