pub struct Arena<T> { /* fields omitted */ }
An Arena
structure containing certain Nodes
Create a new node from its associated data.
Panics if the arena already has usize::max_value()
nodes.
Get a reference to the node with the given id if in the arena, None
otherwise.
Get a mutable reference to the node with the given id if in the arena,
None otherwise.
Iterate over all nodes in the arena in storage-order.
Note that this iterator also contains removed elements, which can be
tested with the is_removed()
method on the node.
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
The returned type after indexing.
Performs the indexing (container[index]
) operation.
Performs the mutable indexing (container[index]
) operation.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)