Struct generational_arena::Index[][src]

pub struct Index { /* fields omitted */ }

An index (and generation) into an Arena.

To get an Index, insert an element into an Arena, and the Index for that element will be returned.

Examples

use generational_arena::Arena;

let mut arena = Arena::new();
let idx = arena.insert(123);
assert_eq!(arena[idx], 123);

Trait Implementations

impl Clone for Index
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Index
[src]

impl Debug for Index
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Index
[src]

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

This method tests for !=.

impl Eq for Index
[src]

impl PartialOrd for Index
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Index
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Index
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

Auto Trait Implementations

impl Send for Index

impl Sync for Index