pub struct JsClosure {
pub id: u64,
pub name: Option<String>,
pub params: Vec<String>,
pub body: Vec<Stmt>,
pub env: Rc<RefCell<Scope>>,
pub is_async: bool,
pub is_generator: bool,
}Expand description
Represents an executable JavaScript function closure capturing its lexical environment.
Fields§
§id: u64§name: Option<String>§params: Vec<String>§body: Vec<Stmt>§env: Rc<RefCell<Scope>>§is_async: bool§is_generator: boolTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for JsClosure
impl !Send for JsClosure
impl !Sync for JsClosure
impl !UnwindSafe for JsClosure
impl Forget for JsClosure
impl Freeze for JsClosure
impl Move for JsClosure
impl Unpin for JsClosure
impl UnsafeUnpin for JsClosure
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