Struct v8::template::ObjectTemplate
[−]
[src]
pub struct ObjectTemplate(_, _);
An ObjectTemplate is used to create objects at runtime.
Properties added to an ObjectTemplate are added to each object created from the ObjectTemplate.
Methods
impl ObjectTemplate
[src]
fn new(isolate: &Isolate) -> ObjectTemplate
Creates an ObjectTemplate.
fn set_internal_field_count(&self, value: usize)
Sets the number of internal fields for objects generated from this template.
fn set(&self, name: &str, value: &Data)
fn new_instance(&self, context: &Context) -> Object
Creates a new object instance based off of this template.
unsafe fn from_raw(isolate: &Isolate, raw: ObjectTemplateRef) -> ObjectTemplate
Creates an object template from a set of raw pointers.
fn as_raw(&self) -> ObjectTemplateRef
Returns the underlying raw pointer behind this object template.
Trait Implementations
impl Debug for ObjectTemplate
[src]
impl Deref for ObjectTemplate
[src]
type Target = Template
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl Clone for ObjectTemplate
[src]
fn clone(&self) -> ObjectTemplate
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