pub struct StoredLambda {
pub params: Vec<String>,
pub body: AstNode,
pub signature: Option<String>,
pub captured_env: HashMap<String, JValue>,
pub captured_data: Option<JValue>,
pub thunk: bool,
/* private fields */
}Expand description
Lambda storage Stores the AST of a lambda function along with its parameters, optional signature, and captured environment for closures
Fields§
§params: Vec<String>§body: AstNode§signature: Option<String>§captured_env: HashMap<String, JValue>Captured environment bindings for closures
captured_data: Option<JValue>Captured data context for lexical scoping of bare field names
thunk: boolWhether this lambda’s body contains tail calls that can be optimized
Trait Implementations§
Source§impl Clone for StoredLambda
impl Clone for StoredLambda
Source§fn clone(&self) -> StoredLambda
fn clone(&self) -> StoredLambda
Returns a duplicate of the value. Read more
1.0.0 · 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 StoredLambda
impl RefUnwindSafe for StoredLambda
impl !Send for StoredLambda
impl !Sync for StoredLambda
impl Unpin for StoredLambda
impl UnsafeUnpin for StoredLambda
impl UnwindSafe for StoredLambda
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