Struct atomic_array::AtomicBoolArray[][src]

pub struct AtomicBoolArray { /* fields omitted */ }

A bool array in which elements may be updated atomically.

Methods

impl AtomicBoolArray
[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 the value at the given position.

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