Type Alias shiden_runtime::ShidenAssetLocationIdConverter

source ·
pub type ShidenAssetLocationIdConverter = AssetLocationIdConverter<AssetId, XcAssetConfig>;

Aliased Type§

struct ShidenAssetLocationIdConverter(/* private fields */);

Trait Implementations

source§

impl<AssetId, AssetMapper> MaybeEquivalence<Location, AssetId> for AssetLocationIdConverter<AssetId, AssetMapper>
where AssetId: Clone + Eq + Bounded, AssetMapper: XcAssetLocation<AssetId>,

source§

fn convert(location: &Location) -> Option<AssetId>

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

fn convert_back(id: &AssetId) -> Option<Location>

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