Struct pallet_balances_totem::NegativeImbalance
source · [−]Expand description
Opaque, move-only struct with private fields that serves as a token denoting that funds have been destroyed without any equal and opposite accounting.
Implementations
Trait Implementations
type Opposite = PositiveImbalance<T, I>
type Opposite = PositiveImbalance<T, I>
The oppositely imbalanced type. They come in pairs.
Drop an instance cleanly. Only works if its self.value()
is zero.
Consume self
and return two independent instances; the first
is guaranteed to be at most amount
and the second will be the remainder. Read more
Consume self
and an other
to return a new instance that combines
both. Read more
Consume an other
to mutate self
into a new instance that combines
both. Read more
Consume self and along with an opposite counterpart to return a combined result. Read more
Consume self
and return two independent instances; the amounts returned will be in
approximately the same ratio as first
:second
. Read more
Consume self and add its two components, defined by the first component’s balance, element-wise to two pre-existing Imbalances. Read more
Consume self and add its two components, defined by the ratio first
:second
,
element-wise to two pre-existing Imbalances. Read more
Consume self and add its two components, defined by the first component’s balance, element-wise into two pre-existing Imbalance refs. Read more
fn ration_merge_into(self, first: u32, second: u32, others: &mut (Self, Self)) where
Balance: From<u32> + Saturating + Div<Balance, Output = Balance>,
fn ration_merge_into(self, first: u32, second: u32, others: &mut (Self, Self)) where
Balance: From<u32> + Saturating + Div<Balance, Output = Balance>,
Consume self and add its two components, defined by the ratio first
:second
,
element-wise to two pre-existing Imbalances. Read more
Consume self to mutate other
so that it combines both. Just like subsume
, only with
reversed arguments. Read more
Consume self
and maybe an other
to return a new instance that combines
both. Read more
Maybe consume an other
to mutate self
into a new instance that combines
both. Read more
impl<T: PartialEq + Config<I>, I: PartialEq + 'static> PartialEq<NegativeImbalance<T, I>> for NegativeImbalance<T, I> where
T::Balance: PartialEq,
impl<T: PartialEq + Config<I>, I: PartialEq + 'static> PartialEq<NegativeImbalance<T, I>> for NegativeImbalance<T, I> where
T::Balance: PartialEq,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T, I> RefUnwindSafe for NegativeImbalance<T, I> where
<T as Config<I>>::Balance: RefUnwindSafe,
impl<T, I> Send for NegativeImbalance<T, I>
impl<T, I> Sync for NegativeImbalance<T, I>
impl<T, I> Unpin for NegativeImbalance<T, I> where
<T as Config<I>>::Balance: Unpin,
impl<T, I> UnwindSafe for NegativeImbalance<T, I> where
<T as Config<I>>::Balance: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more