[−][src]Struct rusty_v8::Template
The superclass of object and function templates.
Implementations
impl Template
[src]
pub fn set(&self, key: Local<'_, Name>, value: Local<'_, Data>)
[src]
Adds a property to each instance created by this template.
pub fn set_with_attr(
&self,
key: Local<'_, Name>,
value: Local<'_, Data>,
attr: PropertyAttribute
)
[src]
&self,
key: Local<'_, Name>,
value: Local<'_, Data>,
attr: PropertyAttribute
)
Adds a property to each instance created by this template with the specified property attributes.
Methods from Deref<Target = Data>
pub fn get_hash(&self) -> int
[src]
Returns the V8 hash value for this value. The current implementation uses a hidden property to store the identity hash on some object types.
The return value will never be 0. Also, it is not guaranteed to be unique.
Trait Implementations
impl Deref for Template
[src]
impl Eq for Template
[src]
impl Hash for Template
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'s> PartialEq<Data> for Template
[src]
impl<'s> PartialEq<FunctionTemplate> for Template
[src]
fn eq(&self, other: &FunctionTemplate) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'s> PartialEq<ObjectTemplate> for Template
[src]
fn eq(&self, other: &ObjectTemplate) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'s> PartialEq<Template> for Data
[src]
impl<'s> PartialEq<Template> for Template
[src]
impl<'s> PartialEq<Template> for FunctionTemplate
[src]
impl<'s> PartialEq<Template> for ObjectTemplate
[src]
Auto Trait Implementations
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,