Type Alias fixed_typed_arena::options::Options
source · 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 parameter | Associated type |
---|---|
CHUNK_SIZE | ArenaOptions::ChunkSize |
SUPPORTS_POSITIONS | ArenaOptions::SupportsPositions |
MUTABLE | ArenaOptions::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>
impl<T, ChunkSize: ChunkSize<T>, SupportsPositions: SupportsPositions, Mutable: Mutable> ArenaOptions<T> for TypedOptions<ChunkSize, SupportsPositions, Mutable>
§type 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. Read more