[][src]Struct eq_balances::balance_adapter::BalanceAdapter

pub struct BalanceAdapter<T, R, CurrencyGetter>(_);

Adapts EqCurrency to work as BasicCurrency in Substrate runtime

Trait Implementations

impl<AccountId, T, R, CurrencyGetter> Currency<AccountId> for BalanceAdapter<T, R, CurrencyGetter> where
    T: Trait,
    R: EqCurrency<AccountId, T::Balance>,
    CurrencyGetter: Get<Currency>, 
[src]

type Balance = T::Balance

The balance of an account.

type PositiveImbalance = PositiveImbalance<T::Balance>

The opaque token type for an imbalance. This is returned by unbalanced operations and must be dealt with. It may be dropped but cannot be cloned. Read more

type NegativeImbalance = NegativeImbalance<T::Balance>

The opaque token type for an imbalance. This is returned by unbalanced operations and must be dealt with. It may be dropped but cannot be cloned. Read more

Auto Trait Implementations

impl<T, R, CurrencyGetter> RefUnwindSafe for BalanceAdapter<T, R, CurrencyGetter> where
    CurrencyGetter: RefUnwindSafe,
    R: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, R, CurrencyGetter> Send for BalanceAdapter<T, R, CurrencyGetter> where
    CurrencyGetter: Send,
    R: Send,
    T: Send

impl<T, R, CurrencyGetter> Sync for BalanceAdapter<T, R, CurrencyGetter> where
    CurrencyGetter: Sync,
    R: Sync,
    T: Sync

impl<T, R, CurrencyGetter> Unpin for BalanceAdapter<T, R, CurrencyGetter> where
    CurrencyGetter: Unpin,
    R: Unpin,
    T: Unpin

impl<T, R, CurrencyGetter> UnwindSafe for BalanceAdapter<T, R, CurrencyGetter> where
    CurrencyGetter: UnwindSafe,
    R: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,