pub struct ClosureConvertConfig {
pub defunctionalize: bool,
pub stack_alloc_non_escaping: bool,
pub max_inline_captures: usize,
pub merge_closures: bool,
}Expand description
Configuration for the closure conversion pass.
Fields§
§defunctionalize: boolWhether to attempt defunctionalization.
stack_alloc_non_escaping: boolWhether to stack-allocate non-escaping closures.
max_inline_captures: usizeMaximum number of captured variables for inlining the closure.
merge_closures: boolWhether to merge identical closures.
Trait Implementations§
Source§impl Clone for ClosureConvertConfig
impl Clone for ClosureConvertConfig
Source§fn clone(&self) -> ClosureConvertConfig
fn clone(&self) -> ClosureConvertConfig
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 ClosureConvertConfig
impl Debug for ClosureConvertConfig
Auto Trait Implementations§
impl Freeze for ClosureConvertConfig
impl RefUnwindSafe for ClosureConvertConfig
impl Send for ClosureConvertConfig
impl Sync for ClosureConvertConfig
impl Unpin for ClosureConvertConfig
impl UnsafeUnpin for ClosureConvertConfig
impl UnwindSafe for ClosureConvertConfig
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