Trait polkadot_sdk_frame::traits::tokens::imbalance::TryMerge
pub trait TryMerge: Sized {
// Required method
fn try_merge(self, other: Self) -> Result<Self, (Self, Self)>;
}
Expand description
Try to merge two imbalances.
Required Methods§
fn try_merge(self, other: Self) -> Result<Self, (Self, Self)>
fn try_merge(self, other: Self) -> Result<Self, (Self, Self)>
Consume self
and an other
to return a new instance that combines both. Errors with
Err(self, other) if the imbalances cannot be merged (e.g. imbalances of different assets).
Object Safety§
This trait is not object safe.