referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::token::tokens

Trait Balance

pub trait Balance:
    AtLeast32BitUnsigned
    + FullCodec
    + DecodeWithMemTracking
    + HasCompact
    + Copy
    + Default
    + Debug
    + TypeInfo
    + MaxEncodedLen
    + Send
    + Sync
    + MaybeSerializeDeserialize
    + 'static
where Self::Type: DecodeWithMemTracking,
{ }
Expand description

Simple amalgamation trait to collect together properties for a Balance under one roof.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<T> Balance for T
where T: AtLeast32BitUnsigned + FullCodec + DecodeWithMemTracking + HasCompact + Copy + Default + Debug + TypeInfo + MaxEncodedLen + Send + Sync + MaybeSerializeDeserialize + 'static, <T as HasCompact>::Type: DecodeWithMemTracking,