Struct v8::Signature [−][src]
#[repr(C)]pub struct Signature(_);
Expand description
A Signature specifies which receiver is valid for a function.
A receiver matches a given signature if the receiver (or any of its hidden prototypes) was created from the signature’s FunctionTemplate, or from a FunctionTemplate that inherits directly or indirectly from the signature’s FunctionTemplate.
Implementations
A Signature specifies which receiver is valid for a function.
A receiver matches a given signature if the receiver (or any of its hidden prototypes) was created from the signature’s FunctionTemplate, or from a FunctionTemplate that inherits directly or indirectly from the signature’s FunctionTemplate.
pub fn new<'s>(
scope: &mut HandleScope<'s, ()>,
templ: Local<'_, FunctionTemplate>
) -> Local<'s, Self>
Methods from Deref<Target = Data>
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.
Returns true if this data is a Private
.
Returns true if this data is an ObjectTemplate
Returns true if this data is a FunctionTemplate.