pub enum StackSizeClass {
Small = 4_096,
Medium = 16_384,
Large = 65_536,
ExtraLarge = 262_144,
}
Expand description
Stack size classes for the pool allocator.
Different threads may need different stack sizes, so we provide several size classes to minimize memory waste.
Variants§
Small = 4_096
Small stack: 4 KiB
Medium = 16_384
Medium stack: 16 KiB
Large = 65_536
Large stack: 64 KiB
ExtraLarge = 262_144
Extra large stack: 256 KiB
Implementations§
Trait Implementations§
Source§impl Clone for StackSizeClass
impl Clone for StackSizeClass
Source§fn clone(&self) -> StackSizeClass
fn clone(&self) -> StackSizeClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StackSizeClass
impl Debug for StackSizeClass
Source§impl PartialEq for StackSizeClass
impl PartialEq for StackSizeClass
impl Copy for StackSizeClass
impl Eq for StackSizeClass
impl StructuralPartialEq for StackSizeClass
Auto Trait Implementations§
impl Freeze for StackSizeClass
impl RefUnwindSafe for StackSizeClass
impl Send for StackSizeClass
impl Sync for StackSizeClass
impl Unpin for StackSizeClass
impl UnwindSafe for StackSizeClass
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