pub trait AssetIdExtractor {
type AssetId;
// Required method
fn asset_id_from_address(address: &[u8; 20]) -> Result<Self::AssetId, Error>;
}
Expand description
Mean of extracting the asset id from the precompile address.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.