Trait frame_support::traits::tokens::nonfungible::InspectEnumerable [−][src]
pub trait InspectEnumerable<AccountId>: Inspect<AccountId> { fn instances() -> Box<dyn Iterator<Item = Self::InstanceId>>; fn owned(who: &AccountId) -> Box<dyn Iterator<Item = Self::InstanceId>>; }
Expand description
Interface for enumerating assets in existence or owned by a given account over a collection of NFTs.
Required methods
fn instances() -> Box<dyn Iterator<Item = Self::InstanceId>>
fn instances() -> Box<dyn Iterator<Item = Self::InstanceId>>
Returns an iterator of the instances of an asset class
in existence.
Implementors
impl<F: InspectEnumerable<AccountId>, A: Get<<F as Inspect<AccountId>>::ClassId>, AccountId> InspectEnumerable<AccountId> for ItemOf<F, A, AccountId>