pub struct ArenaConfig {
pub drop_items: bool,
}Expand description
Config builder for the arena
Fields§
§drop_items: boolWhether Drop::drop will be called on all items when the arena is dropped.
Defaults to true.
Implementations§
Source§impl ArenaConfig
impl ArenaConfig
Sourcepub fn drop_items(self, drop_items: bool) -> Self
pub fn drop_items(self, drop_items: bool) -> Self
Whether Drop::drop will be called on all items when the arena is dropped.
Defaults to true.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArenaConfig
impl RefUnwindSafe for ArenaConfig
impl Send for ArenaConfig
impl Sync for ArenaConfig
impl Unpin for ArenaConfig
impl UnsafeUnpin for ArenaConfig
impl UnwindSafe for ArenaConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more