pub enum PropKey {
Str(String),
Num(f64),
}Expand description
A literal property key.
Variants§
Str(String)
foo or "foo" — identical once the value is interned.
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 Forget for PropKey
impl Freeze for PropKey
impl Move for PropKey
impl RefUnwindSafe for PropKey
impl Send for PropKeywhere
RawVecInner: Send,
impl Sync for PropKeywhere
RawVecInner: Sync,
impl Unpin for PropKey
impl UnsafeUnpin for PropKey
impl UnwindSafe for PropKeywhere
RawVecInner: UnwindSafe,
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