ToPropertyKey

Trait ToPropertyKey 

Source
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§

Source

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Converts self to a new PropertyKey. Returns None when conversion fails.

Implementations on Foreign Types§

Source§

impl<'cx> ToPropertyKey<'cx> for &str

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for i8

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for i16

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for i32

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for *mut Symbol

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for *mut JSString

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for u8

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for u16

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for u32

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for PropertyKey

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for String

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx> ToPropertyKey<'cx> for JSVal

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx, K: ToPropertyKey<'cx>> ToPropertyKey<'cx> for Option<K>

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx, K: ToPropertyKey<'cx>> ToPropertyKey<'cx> for &K

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx, K: ToPropertyKey<'cx>> ToPropertyKey<'cx> for Box<K>

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Source§

impl<'cx, K: ToPropertyKey<'cx>> ToPropertyKey<'cx> for Rc<K>

Source§

fn to_key(&self, cx: &'cx Context) -> Option<PropertyKey<'cx>>

Implementors§

Source§

impl<'cx> ToPropertyKey<'cx> for OwnedKey<'cx>

Source§

impl<'cx> ToPropertyKey<'cx> for WellKnownSymbolCode

Source§

impl<'cx> ToPropertyKey<'cx> for ion::object::PropertyKey<'cx>

Source§

impl<'cx> ToPropertyKey<'cx> for ion::string::String<'cx>

Source§

impl<'cx> ToPropertyKey<'cx> for Value<'cx>

Source§

impl<'cx> ToPropertyKey<'cx> for Symbol<'_>