pub struct Lambda {
pub params: Vec<String>,
pub rest: Option<String>,
pub body: Vec<Sexp>,
pub env: Env,
pub name: Option<String>,
}Expand description
A user-defined closure — captures its lexical environment.
Fields§
§params: Vec<String>§rest: Option<String>If present, extra args bind to this single name as a list (rest-args).
body: Vec<Sexp>§env: Env§name: Option<String>Auto Trait Implementations§
impl !RefUnwindSafe for Lambda
impl !UnwindSafe for Lambda
impl Freeze for Lambda
impl Send for Lambda
impl Sync for Lambda
impl Unpin for Lambda
impl UnsafeUnpin for Lambda
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