Struct v8::template::FunctionTemplate
[−]
[src]
pub struct FunctionTemplate(_, _);
A FunctionTemplate is used to create functions at runtime.
There can only be one function created from a FunctionTemplate in a context. Any modification of a FunctionTemplate after first instantiation will trigger a crash. A FunctionTemplate can have properties, these properties are added to the function object when it is created.
Methods
impl FunctionTemplate
[src]
fn new(isolate: &Isolate,
context: &Context,
callback: Box<FunctionCallback>)
-> FunctionTemplate
context: &Context,
callback: Box<FunctionCallback>)
-> FunctionTemplate
Creates a function template.
fn get_function(self, context: &Context) -> Function
Returns the unique function instance in the current execution context.
Trait Implementations
impl Debug for FunctionTemplate
[src]
impl Deref for FunctionTemplate
[src]
type Target = Template
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl Clone for FunctionTemplate
[src]
fn clone(&self) -> FunctionTemplate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more