pub struct Closure {
pub params: Vec<String>,
pub body: Rc<Expr>,
pub scope: Scope,
}Expand description
a function value: its parameters, its body, the scope it closed over
Fields§
§params: Vec<String>the parameters
body: Rc<Expr>the body
scope: Scopethe scope
Auto Trait Implementations§
impl !RefUnwindSafe for Closure
impl !Send for Closure
impl !Sync for Closure
impl !UnwindSafe for Closure
impl Freeze for Closure
impl Unpin for Closure
impl UnsafeUnpin for Closure
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