pub struct ClosureExpr {
pub param_slots: Vec<LocalSlot>,
pub capture_copies: Vec<(LocalSlot, LocalSlot)>,
pub body: Box<Expr>,
}Expand description
Shared frontend-independent program representation that all source frontends lower into before bytecode emission.
Fields§
§param_slots: Vec<LocalSlot>§capture_copies: Vec<(LocalSlot, LocalSlot)>§body: Box<Expr>Trait Implementations§
Source§impl Clone for ClosureExpr
impl Clone for ClosureExpr
Source§fn clone(&self) -> ClosureExpr
fn clone(&self) -> ClosureExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClosureExpr
impl RefUnwindSafe for ClosureExpr
impl Send for ClosureExpr
impl Sync for ClosureExpr
impl Unpin for ClosureExpr
impl UnsafeUnpin for ClosureExpr
impl UnwindSafe for ClosureExpr
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