pub struct Closure {
pub params: Vec<Arc<str>>,
pub rest: Option<Arc<str>>,
pub body: Vec<Spanned>,
pub captured_env: Env,
pub source: Span,
}Expand description
A user-defined closure produced by (lambda …) or (define (f …) …).
Fields§
§params: Vec<Arc<str>>§rest: Option<Arc<str>>Optional rest parameter — (lambda (a b . rest) …) or
(lambda (a b &rest rs) …).
body: Vec<Spanned>Body forms, preserved as Spanned so error locations inside the
body remain accurate after construction.
captured_env: Env§source: SpanAuto Trait Implementations§
impl Freeze for Closure
impl RefUnwindSafe for Closure
impl Send for Closure
impl Sync for Closure
impl Unpin for Closure
impl UnsafeUnpin for Closure
impl UnwindSafe 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