pub struct Options<const CHUNK_SIZE: usize = 16, const SUPPORTS_POSITIONS: bool = false, const MUTABLE: bool = true>;
Expand description

Arena options.

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

Trait Implementations

The number of elements of type T that each chunk can hold.
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
If true, the arena is able to return mutable references.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.