pub struct FunctionObjectBase {
pub name: String,
pub environment: JsLexEnvironmentType,
pub formal_parameters: Rc<Vec<PatternType>>,
pub body_code: Rc<FunctionBodyData>,
pub function_kind: FunctionKind,
pub constructor_kind: ConstructorKind,
pub is_lexical: bool,
pub home_object: Option<JsObjectType>,
pub realm: JsCodeRealmType,
pub object_base: ObjectBase,
}Fields§
§name: String§environment: JsLexEnvironmentType§formal_parameters: Rc<Vec<PatternType>>§body_code: Rc<FunctionBodyData>§function_kind: FunctionKind§constructor_kind: ConstructorKind§is_lexical: bool§home_object: Option<JsObjectType>§realm: JsCodeRealmType§object_base: ObjectBaseImplementations§
Source§impl FunctionObjectBase
impl FunctionObjectBase
pub fn new_normal_function( name: String, environment: JsLexEnvironmentType, formal_parameters: Rc<Vec<PatternType>>, body_code: Rc<FunctionBodyData>, home_object: JsObjectType, realm: JsCodeRealmType, ) -> Self
pub fn new_generator_function( name: String, environment: JsLexEnvironmentType, formal_parameters: Rc<Vec<PatternType>>, body_code: Rc<FunctionBodyData>, home_object: JsObjectType, realm: JsCodeRealmType, ) -> Self
pub fn new_arrow_function( environment: JsLexEnvironmentType, formal_parameters: Rc<Vec<PatternType>>, body_code: Rc<FunctionBodyData>, realm: JsCodeRealmType, ) -> Self
pub fn new_constructor_function( name: String, environment: JsLexEnvironmentType, formal_parameters: Rc<Vec<PatternType>>, body_code: Rc<FunctionBodyData>, home_object: JsObjectType, constructor_kind: ConstructorKind, realm: JsCodeRealmType, ) -> Self
pub fn get_object_base_mut(&mut self) -> &mut ObjectBase
pub fn get_object_base(&self) -> &ObjectBase
Auto Trait Implementations§
impl Freeze for FunctionObjectBase
impl !RefUnwindSafe for FunctionObjectBase
impl !Send for FunctionObjectBase
impl !Sync for FunctionObjectBase
impl Unpin for FunctionObjectBase
impl !UnwindSafe for FunctionObjectBase
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