Struct atomic_array::AtomicRefArray[][src]

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

An array of non-optional references in which elements may be updated and retrieved atomically.

Methods

impl<T> AtomicRefArray<T>
[src]

Constructs a new array with the specified length. All values will be initialized to their default.

Constructs a new array with the specified length. Uses the given function to construct each value.

Returns the number of elements in the array.

Returns true if the array has a length of 0.

Loads and returns a reference to an value at the given position or None if the value at the index is not set.

Panics if index is out of bounds.

Stores the value at the given position.

Panics if index is out bounds.

Swaps the value at the given position, returning the previous value.

Panics if index is out of bounds.

Auto Trait Implementations

impl<T> Send for AtomicRefArray<T>

impl<T> Sync for AtomicRefArray<T>