Struct salva3d::object::ContiguousArena[][src]

pub struct ContiguousArena<Idx, T> { /* fields omitted */ }
Expand description

This is a Vec behind a generational arena.

The goal of this structure is to have unique identifiers for elements stored contiguously on a Vec.

Implementations

Creates a new empty arena.

Get an element from its position on the contiguous array.

The number of objects on this arena.

Gets a reference to the object identified by handle.

Gets a mutable reference to the object identified by handle.

Gets references to all the objects on this set.

Gets mutable references to all the objects on this set.

Iter through all the objects as well as their handle.

Retrieves the set of objects as a slice.

Retrieves the set of objects as a mutable slice.

Insert an object into this set.

Remove an object from this set.

Trait Implementations

Performs the conversion.

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. 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.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

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

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.