Trait fixed_typed_arena::options::ArenaOptions
source · 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 Position
s, allowing methods like
IterMut::as_position
and Arena::iter_mut_at
to be called, at
the cost of using slightly more memory.
Default: false