pub struct JavascriptFunction {
pub kind: JavascriptFunctionKind,
pub environment: ManagedHandle,
pub constructable: bool,
pub private_names: Vec<String>,
}Expand description
Inspectable callable metadata. Executable bodies remain codec-lowered forms; this record owns only binding and construction policy.
Fields§
§kind: JavascriptFunctionKindFunction form.
environment: ManagedHandleCaptured lexical environment.
constructable: boolWhether new is legal.
private_names: Vec<String>Declared private names for a class constructor.
Trait Implementations§
Source§impl Clone for JavascriptFunction
impl Clone for JavascriptFunction
Source§fn clone(&self) -> JavascriptFunction
fn clone(&self) -> JavascriptFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JavascriptFunction
impl RefUnwindSafe for JavascriptFunction
impl Send for JavascriptFunction
impl Sync for JavascriptFunction
impl Unpin for JavascriptFunction
impl UnsafeUnpin for JavascriptFunction
impl UnwindSafe for JavascriptFunction
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