pub trait ToPropertyKey<'cx> {
// Required method
fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>;
}Expand description
Represents types that can be converted to property keys.
Required Methods§
Sourcefn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>
fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>
Converts self to a new PropertyKey.
Returns None when conversion fails.