pub type GeneralCurrencyIndexOf<T> = GeneralCurrencyIndex<GeneralCurrencyIndexType, <T as Config>::GeneralCurrencyPrefix>;

Aliased Type§

struct GeneralCurrencyIndexOf<T> {
    pub index: u128,
    /* private fields */
}

Fields§

§index: u128

Trait Implementations

§

impl<Index, Prefix> From<u128> for GeneralCurrencyIndex<Index, Prefix>
where Index: From<u128>, Prefix: Get<[u8; 12]>,

§

fn from(value: u128) -> GeneralCurrencyIndex<Index, Prefix>

Converts to this type from the input type.
§

impl<Index, Prefix> TryFrom<CurrencyId> for GeneralCurrencyIndex<Index, Prefix>
where Index: From<u128>, Prefix: Get<[u8; 12]>,

§

type Error = DispatchError

The type returned in the event of a conversion error.
§

fn try_from( value: CurrencyId ) -> Result<GeneralCurrencyIndex<Index, Prefix>, <GeneralCurrencyIndex<Index, Prefix> as TryFrom<CurrencyId>>::Error>

Performs the conversion.