pub enum PropKey {
Str(Wtf8),
Num(f64),
}Expand description
A literal property key.
Variants§
Str(Wtf8)
foo or "foo" — identical once the value is interned.
A Wtf8: the quoted form can hold a surrogate the identifier form cannot, so
the wider type is the one that has to hold both.
Num(f64)
1, 1.5, 0x10 — the numeric value matters for array indexing.
Implementations§
Source§impl PropKey
impl PropKey
Sourcepub fn as_ref(&self) -> PropKeyRef<'_>
pub fn as_ref(&self) -> PropKeyRef<'_>
Borrow as PropKeyRef.
Trait Implementations§
impl StructuralPartialEq for PropKey
Auto Trait Implementations§
impl !Send for PropKey
impl !Sync for PropKey
impl Forget for PropKey
impl Freeze for PropKey
impl Move for PropKey
impl RefUnwindSafe for PropKey
impl Unpin for PropKey
impl UnsafeUnpin for PropKeywhere
*const RcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<RcInner<[u8]>>: UnsafeUnpin,
*const RcInner<Vec<u8>> is !null: UnsafeUnpin,
PhantomData<RcInner<Vec<u8>>>: UnsafeUnpin,
impl UnwindSafe for PropKey
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