pub(crate) trait RecordKey:
Eq
+ Hash
+ Sized {
// Required methods
fn to_utf16_vec(&self) -> Vec<u16>;
unsafe fn from_id(
cx: *mut JSContext,
id: HandleId<'_>,
) -> Result<ConversionResult<Self>, ()>;
}
Required Methods§
fn to_utf16_vec(&self) -> Vec<u16>
unsafe fn from_id( cx: *mut JSContext, id: HandleId<'_>, ) -> Result<ConversionResult<Self>, ()>
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.