pub trait ArenaOptions<T>: Sealed {
type ChunkSize: ChunkSize<T>;
type SupportsPositions: SupportsPositions;
type Mutable: Mutable;
}Expand description
Arena options trait.
This is a sealed trait; use the Options type, which implements this
trait.
Required Associated Types§
Sourcetype ChunkSize: ChunkSize<T>
type ChunkSize: ChunkSize<T>
The number of elements of type T that each chunk can hold.
Default: 16
Sourcetype SupportsPositions: SupportsPositions
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.
Default: false