Struct orml_currencies::BasicCurrencyAdapter[][src]

pub struct BasicCurrencyAdapter<T, Currency, Amount, Moment>(_);

Adapt other currency traits implementation to BasicCurrency.

Trait Implementations

impl<T, AccountId, Currency, Amount, Moment> BasicCurrency<AccountId> for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Currency: PalletCurrency<AccountId>,
    T: Config
[src]

type Balance = <Currency as PalletCurrency<AccountId>>::Balance

The balance of an account.

impl<T, AccountId, Currency, Amount, Moment> BasicCurrencyExtended<AccountId> for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Amount: Signed + TryInto<<Currency as PalletCurrency<AccountId>>::Balance> + TryFrom<<Currency as PalletCurrency<AccountId>>::Balance> + SimpleArithmetic + Codec + Copy + MaybeSerializeDeserialize + Debug + Default,
    Currency: PalletCurrency<AccountId>,
    T: Config
[src]

type Amount = Amount

The signed type for balance related operations, typically signed int.

impl<T, AccountId, Currency, Amount, Moment> BasicLockableCurrency<AccountId> for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Currency: PalletLockableCurrency<AccountId>,
    T: Config
[src]

type Moment = Moment

The quantity used to denote time; usually just a BlockNumber.

impl<T, AccountId, Currency, Amount, Moment> BasicReservableCurrency<AccountId> for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Currency: PalletReservableCurrency<AccountId>,
    T: Config
[src]

Auto Trait Implementations

impl<T, Currency, Amount, Moment> RefUnwindSafe for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Amount: RefUnwindSafe,
    Currency: RefUnwindSafe,
    Moment: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, Currency, Amount, Moment> Send for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Amount: Send,
    Currency: Send,
    Moment: Send,
    T: Send
[src]

impl<T, Currency, Amount, Moment> Sync for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Amount: Sync,
    Currency: Sync,
    Moment: Sync,
    T: Sync
[src]

impl<T, Currency, Amount, Moment> Unpin for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Amount: Unpin,
    Currency: Unpin,
    Moment: Unpin,
    T: Unpin
[src]

impl<T, Currency, Amount, Moment> UnwindSafe for BasicCurrencyAdapter<T, Currency, Amount, Moment> where
    Amount: UnwindSafe,
    Currency: UnwindSafe,
    Moment: UnwindSafe,
    T: UnwindSafe
[src]

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[src]

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

impl<T> Instrument for T[src]

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

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

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

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

Get a reference to the inner from the outer.

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

Get a mutable reference to the inner from the outer.

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
    T: Bounded,
    S: TryInto<T>, 

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