referrerpolicy=no-referrer-when-downgrade
assets_common

Type Alias AssetIdForPoolAssetsConvert

Source
pub type AssetIdForPoolAssetsConvert<PoolAssetsPalletLocation, L = Location> = AsPrefixedGeneralIndex<PoolAssetsPalletLocation, AssetIdForPoolAssets, TryConvertInto, L>;
Expand description

Location vs AssetIdForPoolAssets converter for PoolAssets.

Aliased Type§

struct AssetIdForPoolAssetsConvert<PoolAssetsPalletLocation, L = Location>(/* private fields */);

Trait Implementations

Source§

impl<Prefix, AssetId, ConvertAssetId, L> MaybeEquivalence<L, AssetId> for AsPrefixedGeneralIndex<Prefix, AssetId, ConvertAssetId, L>
where Prefix: Get<L>, AssetId: Clone, ConvertAssetId: MaybeEquivalence<u128, AssetId>, L: TryInto<Location> + TryFrom<Location> + Clone,

Source§

fn convert(id: &L) -> Option<AssetId>

Attempt to convert reference of A into value of B, returning None if not possible.
Source§

fn convert_back(what: &AssetId) -> Option<L>

Attempt to convert reference of B into value of A, returning None if not possible.