pub enum PropertyKey {
String(JsString),
Index(u32),
Symbol(Box<JsSymbol>),
}Expand description
Property key (string, index, or symbol)
Size-optimized: JsSymbol is boxed since symbol keys are rare.
Variants§
Implementations§
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 (const: unstable) · 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
impl Eq for PropertyKey
Source§impl Hash for PropertyKey
impl Hash for PropertyKey
Source§impl PartialEq for PropertyKey
impl PartialEq for PropertyKey
Source§fn eq(&self, other: &PropertyKey) -> bool
fn eq(&self, other: &PropertyKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PropertyKey
Auto Trait Implementations§
impl !Send for PropertyKey
impl !Sync for PropertyKey
impl Freeze for PropertyKey
impl RefUnwindSafe for PropertyKey
impl Unpin for PropertyKey
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.