referrerpolicy=no-referrer-when-downgrade

Trait InspectEnumerable

pub trait InspectEnumerable<AccountId>: Inspect<AccountId> {
    type ItemsIterator: Iterator<Item = Self::ItemId>;
    type OwnedIterator: Iterator<Item = Self::ItemId>;

    // Required methods
    fn items() -> Self::ItemsIterator;
    fn owned(who: &AccountId) -> Self::OwnedIterator;
}
Expand description

Interface for enumerating items in existence or owned by a given account over a collection of NFTs.

Required Associated Types§

type ItemsIterator: Iterator<Item = Self::ItemId>

The iterator type for Self::items.

type OwnedIterator: Iterator<Item = Self::ItemId>

The iterator type for Self::owned.

Required Methods§

fn items() -> Self::ItemsIterator

Returns an iterator of the items within a collection in existence.

fn owned(who: &AccountId) -> Self::OwnedIterator

Returns an iterator of the items of all collections owned by who.

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.

Implementors§

§

impl<F, A, AccountId> InspectEnumerable<AccountId> for ItemOf<F, A, AccountId>
where F: InspectEnumerable<AccountId>, A: Get<<F as Inspect<AccountId>>::CollectionId>,