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.