Struct indextree::Arena [] [src]

pub struct Arena<T> { /* fields omitted */ }

An Arena structure containing certain Nodes

Methods

impl<T> Arena<T>
[src]

[src]

Create a new empty Arena

[src]

Create a new node from its associated data.

[src]

[src]

[src]

Get a reference to the node with the given id if in the arena, None otherwise.

[src]

Get a mutable reference to the node with the given id if in the arena, None otherwise.

[src]

Iterate over all nodes in the arena in storage-order.

Trait Implementations

impl<T: PartialEq> PartialEq for Arena<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Clone> Clone for Arena<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Arena<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> Index<NodeId> for Arena<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> IndexMut<NodeId> for Arena<T>
[src]

[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl<T> Send for Arena<T> where
    T: Send

impl<T> Sync for Arena<T> where
    T: Sync