pub struct ClosureConvertStats {
pub closures_converted: usize,
pub helpers_lifted: usize,
pub defunctionalized: usize,
pub stack_allocated: usize,
pub heap_allocated: usize,
pub closures_merged: usize,
}Expand description
Statistics from the closure conversion pass.
Fields§
§closures_converted: usizeNumber of closures converted.
helpers_lifted: usizeNumber of helper functions lifted.
defunctionalized: usizeNumber of closures defunctionalized.
stack_allocated: usizeNumber of closures stack-allocated.
heap_allocated: usizeNumber of closures that had to be heap-allocated.
closures_merged: usizeNumber of closures merged.
Trait Implementations§
Source§impl Clone for ClosureConvertStats
impl Clone for ClosureConvertStats
Source§fn clone(&self) -> ClosureConvertStats
fn clone(&self) -> ClosureConvertStats
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 ClosureConvertStats
impl Debug for ClosureConvertStats
Source§impl Default for ClosureConvertStats
impl Default for ClosureConvertStats
Source§fn default() -> ClosureConvertStats
fn default() -> ClosureConvertStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClosureConvertStats
impl RefUnwindSafe for ClosureConvertStats
impl Send for ClosureConvertStats
impl Sync for ClosureConvertStats
impl Unpin for ClosureConvertStats
impl UnsafeUnpin for ClosureConvertStats
impl UnwindSafe for ClosureConvertStats
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