pub type Options<const CHUNK_SIZE: usize = 16, const SUPPORTS_POSITIONS: bool = false, const MUTABLE: bool = true> = TypedOptions<Usize<CHUNK_SIZE>, Bool<SUPPORTS_POSITIONS>, Bool<MUTABLE>>;
Expand description

Arena options.

This type implements ArenaOptions. Const parameters correspond to associated types in ArenaOptions as follows; see those associated types for documentation:

Const parameterAssociated type
CHUNK_SIZEArenaOptions::ChunkSize
SUPPORTS_POSITIONSArenaOptions::SupportsPositions
MUTABLEArenaOptions::Mutable

Aliased Type§

struct Options<const CHUNK_SIZE: usize = 16, const SUPPORTS_POSITIONS: bool = false, const MUTABLE: bool = true>(/* private fields */);

Trait Implementations§

source§

impl<T, ChunkSize: ChunkSize<T>, SupportsPositions: SupportsPositions, Mutable: Mutable> ArenaOptions<T> for TypedOptions<ChunkSize, SupportsPositions, Mutable>

§

type ChunkSize = ChunkSize

The number of elements of type T that each chunk can hold. Read more
§

type SupportsPositions = SupportsPositions

If true, enables the use of Positions, allowing methods like IterMut::as_position and Arena::iter_mut_at to be called, at the cost of using slightly more memory. Read more
§

type Mutable = Mutable

If true, the arena is able to return mutable references. Read more