Struct pwasm_utils::RefList[][src]

pub struct RefList<T> { /* fields omitted */ }
Expand description

List that tracks references and indices.

Implementations

New empty list.

Push new element in the list.

Returns refernce tracking entry.

Start deleting.

Start deleting some entries in the list. Returns transaction that can be populated with number of removed entries. When transaction is finailized, all entries are deleted and internal indices of other entries are updated.

Start inserting.

Start inserting some entries in the list at he designated position. Returns transaction that can be populated with some entries. When transaction is finailized, all entries are inserted and internal indices of other entries might be updated.

Start inserting after the condition first matches (or at the end).

Start inserting some entries in the list at he designated position. Returns transaction that can be populated with some entries. When transaction is finailized, all entries are inserted and internal indices of other entries might be updated.

Start inserting after the condition first no longer true (or at the end).

Start inserting some entries in the list at he designated position. Returns transaction that can be populated with some entries. When transaction is finailized, all entries are inserted and internal indices of other entries might be updated.

Get entry with index (checked).

Can return None when index out of bounts.

Delete several items.

Delete one item.

Initialize from slice.

Slice members are cloned.

Length of the list.

Returns true iff len == 0.

Clone entry (reference counting object to item) by index.

Will panic if index out of bounds.

Get reference to entry by index.

Will panic if index out of bounds.

Iterate through entries.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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

Performs the conversion.

Performs the conversion.

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.