pub struct PagedMap<'a, T, Acum> {
    pub status: Item<'a, PaginationInfo<Acum>>,
    /* private fields */
}
Expand description

Allows for multi-transaction computation on a dataset. Required for large datasets due to gas constraints.

Fields§

§status: Item<'a, PaginationInfo<Acum>>

Pagination progress status

Implementations§

Warning: This function circumvents the storage lock. You should only use this in a pagination function.

Warning: This function circumvents the storage lock. You should only use this in a pagination function. Returns the removed item after deleting it

Perform some operation on a page of the map. Returns an optional result of that computation. Repeat until state unlocks to page over the whole map Omits errors from f()

Will apply function on each element (key, value) of the map. Errors on function f() are neglected. Will not lock the set as no accumulator is used so map state changes are allowed.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.