pub enum PropertyKey {
String(JsString),
Symbol(JsSymbol),
Index(u32),
}Expand description
This abstracts away the need for IsPropertyKey by transforming the PropertyKey values into an enum with both valid types: String and Symbol
More information:
Variants§
Trait Implementations§
Source§impl Clone for PropertyKey
impl Clone for PropertyKey
Source§fn clone(&self) -> PropertyKey
fn clone(&self) -> PropertyKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropertyKey
impl Debug for PropertyKey
Source§impl Display for PropertyKey
impl Display for PropertyKey
Source§impl Drop for PropertyKey
impl Drop for PropertyKey
Source§impl From<&PropertyKey> for JsValue
impl From<&PropertyKey> for JsValue
Source§fn from(property_key: &PropertyKey) -> JsValue
fn from(property_key: &PropertyKey) -> JsValue
Converts to this type from the input type.
Source§impl From<&str> for PropertyKey
impl From<&str> for PropertyKey
Source§fn from(string: &str) -> PropertyKey
fn from(string: &str) -> PropertyKey
Converts to this type from the input type.
Source§impl From<JsString> for PropertyKey
impl From<JsString> for PropertyKey
Source§fn from(string: JsString) -> PropertyKey
fn from(string: JsString) -> PropertyKey
Converts to this type from the input type.
Source§impl From<JsSymbol> for PropertyKey
impl From<JsSymbol> for PropertyKey
Source§fn from(symbol: JsSymbol) -> PropertyKey
fn from(symbol: JsSymbol) -> PropertyKey
Converts to this type from the input type.
Source§impl From<PropertyKey> for JsValue
impl From<PropertyKey> for JsValue
Source§fn from(property_key: PropertyKey) -> JsValue
fn from(property_key: PropertyKey) -> JsValue
Converts to this type from the input type.
Source§impl From<String> for PropertyKey
impl From<String> for PropertyKey
Source§fn from(string: String) -> PropertyKey
fn from(string: String) -> PropertyKey
Converts to this type from the input type.
Source§impl From<f64> for PropertyKey
impl From<f64> for PropertyKey
Source§impl From<i32> for PropertyKey
impl From<i32> for PropertyKey
Source§impl From<i64> for PropertyKey
impl From<i64> for PropertyKey
Source§impl From<isize> for PropertyKey
impl From<isize> for PropertyKey
Source§impl From<u16> for PropertyKey
impl From<u16> for PropertyKey
Source§impl From<u32> for PropertyKey
impl From<u32> for PropertyKey
Source§impl From<u64> for PropertyKey
impl From<u64> for PropertyKey
Source§impl From<u8> for PropertyKey
impl From<u8> for PropertyKey
Source§impl From<usize> for PropertyKey
impl From<usize> for PropertyKey
Source§impl PartialEq<&str> for PropertyKey
impl PartialEq<&str> for PropertyKey
Source§impl PartialEq for PropertyKey
impl PartialEq for PropertyKey
Source§impl Trace for PropertyKey
impl Trace for PropertyKey
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl StructuralPartialEq for PropertyKey
Auto Trait Implementations§
impl Freeze for PropertyKey
impl !RefUnwindSafe for PropertyKey
impl !Send for PropertyKey
impl !Sync for PropertyKey
impl Unpin for PropertyKey
impl !UnwindSafe for PropertyKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more