pub struct Signature(/* private fields */);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§
Source§impl Signature
A Signature specifies which receiver is valid for a function.
impl Signature
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.
Methods from Deref<Target = Data>§
Sourcepub fn is_big_int(&self) -> bool
pub fn is_big_int(&self) -> bool
Returns true if this data is a BigInt.
Sourcepub fn is_boolean(&self) -> bool
pub fn is_boolean(&self) -> bool
Returns true if this data is a Boolean.
Sourcepub fn is_context(&self) -> bool
pub fn is_context(&self) -> bool
Returns true if this data is a Context.
Sourcepub fn is_fixed_array(&self) -> bool
pub fn is_fixed_array(&self) -> bool
Returns true if this data is a FixedArray.
Sourcepub fn is_function_template(&self) -> bool
pub fn is_function_template(&self) -> bool
Returns true if this data is a FunctionTemplate.
Sourcepub fn is_module_request(&self) -> bool
pub fn is_module_request(&self) -> bool
Returns true if this data is a ModuleRequest.
Sourcepub fn is_object_template(&self) -> bool
pub fn is_object_template(&self) -> bool
Returns true if this data is a ObjectTemplate.
Sourcepub fn is_primitive(&self) -> bool
pub fn is_primitive(&self) -> bool
Returns true if this data is a Primitive.
Sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns true if this data is a Private.