Struct boa::js::function::NativeFunction
source · pub struct NativeFunction {
pub object: ObjectData,
pub data: NativeFunctionData,
}
Expand description
Represents a native javascript function in memory
Fields
object: ObjectData
The fields associated with the function
data: NativeFunctionData
The callable function data
Implementations
sourceimpl NativeFunction
impl NativeFunction
sourcepub fn new(data: NativeFunctionData) -> NativeFunction
pub fn new(data: NativeFunctionData) -> NativeFunction
Make a new native function with the given function data
Trait Implementations
sourceimpl Clone for NativeFunction
impl Clone for NativeFunction
sourcefn clone(&self) -> NativeFunction
fn clone(&self) -> NativeFunction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NativeFunction
impl Debug for NativeFunction
sourceimpl Drop for NativeFunction
impl Drop for NativeFunction
sourceimpl Finalize for NativeFunction
impl Finalize for NativeFunction
sourceimpl Trace for NativeFunction
impl Trace for NativeFunction
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
Auto Trait Implementations
impl !RefUnwindSafe for NativeFunction
impl !Send for NativeFunction
impl !Sync for NativeFunction
impl Unpin for NativeFunction
impl !UnwindSafe for NativeFunction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more