referrerpolicy=no-referrer-when-downgrade
assets_common

Type Alias CollectionIdForUniquesConvert

Source
pub type CollectionIdForUniquesConvert<UniquesPalletLocation> = AsPrefixedGeneralIndex<UniquesPalletLocation, CollectionId, TryConvertInto>;
Expand description

Location vs CollectionId converter for Uniques

Aliased Type§

struct CollectionIdForUniquesConvert<UniquesPalletLocation>(/* private fields */);

Trait Implementations

§

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,

§

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

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

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

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