referrerpolicy=no-referrer-when-downgrade
pallet_nft_fractionalization

Trait BenchmarkHelper

Source
pub trait BenchmarkHelper<AssetId, CollectionId, ItemId> {
    // Required methods
    fn asset(id: u32) -> AssetId;
    fn collection(id: u32) -> CollectionId;
    fn nft(id: u32) -> ItemId;
}
Expand description

Benchmark Helper

Required Methods§

Source

fn asset(id: u32) -> AssetId

Returns an asset id from a given integer.

Source

fn collection(id: u32) -> CollectionId

Returns a collection id from a given integer.

Source

fn nft(id: u32) -> ItemId

Returns an nft id from a given integer.

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.

Implementations on Foreign Types§

Source§

impl<AssetId, CollectionId, ItemId> BenchmarkHelper<AssetId, CollectionId, ItemId> for ()
where AssetId: From<u32>, CollectionId: From<u32>, ItemId: From<u32>,

Source§

fn asset(id: u32) -> AssetId

Source§

fn collection(id: u32) -> CollectionId

Source§

fn nft(id: u32) -> ItemId

Implementors§