Struct passerine::common::closure::Closure [−][src]
pub struct Closure {
pub id: String,
pub lambda: Rc<Lambda>,
pub captures: Vec<Rc<RefCell<Data>>>,
}
Expand description
Wraps a Lambda
with some scope context.
Each closure is unique when constructed,
Because it depends on the surrounding environment it was constructed in.
It holds a set of references to variables it captures.
Fields
id: String
lambda: Rc<Lambda>
captures: Vec<Rc<RefCell<Data>>>
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Closure
impl !UnwindSafe for Closure
Blanket Implementations
Mutably borrows from an owned value. Read more