pub enum JavascriptPropertyKey {
String(String),
Symbol(u64),
Private {
class: ManagedId,
name: String,
},
}Expand description
JavaScript property keys. Private names are deliberately class-scoped and cannot be manufactured from strings.
Variants§
String(String)
String property.
Symbol(u64)
Symbol identity (ordered after strings).
Private
Declared private name, paired with its declaring class identity.
Trait Implementations§
Source§impl Clone for JavascriptPropertyKey
impl Clone for JavascriptPropertyKey
Source§fn clone(&self) -> JavascriptPropertyKey
fn clone(&self) -> JavascriptPropertyKey
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 JavascriptPropertyKey
impl Debug for JavascriptPropertyKey
impl Eq for JavascriptPropertyKey
Source§impl Hash for JavascriptPropertyKey
impl Hash for JavascriptPropertyKey
Source§impl PartialEq for JavascriptPropertyKey
impl PartialEq for JavascriptPropertyKey
impl StructuralPartialEq for JavascriptPropertyKey
Auto Trait Implementations§
impl Freeze for JavascriptPropertyKey
impl RefUnwindSafe for JavascriptPropertyKey
impl Send for JavascriptPropertyKey
impl Sync for JavascriptPropertyKey
impl Unpin for JavascriptPropertyKey
impl UnsafeUnpin for JavascriptPropertyKey
impl UnwindSafe for JavascriptPropertyKey
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.