pub trait ReferenceType:
AsRef<Reference>
+ InstanceOf
+ TryFrom<Value>
+ TryFrom<Reference> {
// Required method
unsafe fn from_reference_unchecked(reference: Reference) -> Self;
}
Expand description
A trait for types which wrap a reference to a JavaScript object.
Required Methods§
Sourceunsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper. Doesn’t do any type checking; highly unsafe to use!
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.