pub trait RecordKey:
Sized
+ Eq
+ Hash {
// Required methods
fn to_utf16_vec(&self) -> Vec<u16>;
fn from_id(
cx: &mut JSContext,
id: Handle<'_, PropertyKey>,
) -> Result<ConversionResult<Self>, ()>;
}Required Methods§
fn to_utf16_vec(&self) -> Vec<u16>
Sourcefn from_id(
cx: &mut JSContext,
id: Handle<'_, PropertyKey>,
) -> Result<ConversionResult<Self>, ()>
fn from_id( cx: &mut JSContext, id: Handle<'_, PropertyKey>, ) -> Result<ConversionResult<Self>, ()>
Attempt to extract a key from a JS id.
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.