pub struct ClosureConversionResult {
pub closure: Closure,
pub captured_vars: Vec<String>,
pub eta_expanded: bool,
pub has_mutual_rec: bool,
}Expand description
Result of closure conversion for a function.
Fields§
§closure: ClosureThe converted closure.
captured_vars: Vec<String>Free variables that were captured.
eta_expanded: boolWhether the function was eta-expanded during conversion.
has_mutual_rec: boolWhether any mutual recursion was detected.
Implementations§
Trait Implementations§
Source§impl Clone for ClosureConversionResult
impl Clone for ClosureConversionResult
Source§fn clone(&self) -> ClosureConversionResult
fn clone(&self) -> ClosureConversionResult
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 moreAuto Trait Implementations§
impl Freeze for ClosureConversionResult
impl RefUnwindSafe for ClosureConversionResult
impl Send for ClosureConversionResult
impl Sync for ClosureConversionResult
impl Unpin for ClosureConversionResult
impl UnsafeUnpin for ClosureConversionResult
impl UnwindSafe for ClosureConversionResult
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