pub struct EscapeOptConfig {
pub enable_stack_alloc: bool,
pub max_stack_size_bytes: u64,
pub aggressive_mode: bool,
}Expand description
Configuration options for the escape-based stack-allocation optimization.
Fields§
§enable_stack_alloc: boolWhether to emit stack-allocation hints.
max_stack_size_bytes: u64Maximum object size (bytes) eligible for stack allocation.
aggressive_mode: boolIn aggressive mode, LocalEscape allocations are also stack-allocated.
Trait Implementations§
Source§impl Clone for EscapeOptConfig
impl Clone for EscapeOptConfig
Source§fn clone(&self) -> EscapeOptConfig
fn clone(&self) -> EscapeOptConfig
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 EscapeOptConfig
impl Debug for EscapeOptConfig
Auto Trait Implementations§
impl Freeze for EscapeOptConfig
impl RefUnwindSafe for EscapeOptConfig
impl Send for EscapeOptConfig
impl Sync for EscapeOptConfig
impl Unpin for EscapeOptConfig
impl UnsafeUnpin for EscapeOptConfig
impl UnwindSafe for EscapeOptConfig
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