Function assets_common::fungible_conversion::convert
source · pub fn convert<'a, AssetId, Balance, ConvertAssetId, ConvertBalance, Converter>(
items: impl Iterator<Item = &'a (AssetId, Balance)>,
) -> Result<Vec<Asset>, FungiblesAccessError>where
AssetId: Clone + 'a,
Balance: Clone + 'a,
ConvertAssetId: MaybeEquivalence<Location, AssetId>,
ConvertBalance: MaybeEquivalence<u128, Balance>,
Converter: AssetConverter<AssetId, Balance, ConvertAssetId, ConvertBalance>,
Expand description
Helper function to convert collections with [(AssetId, Balance)
] to [Asset
]