pub struct WellKnownSymbols { /* private fields */ }Expand description
The realm’s well-known symbols, indexed by the order builtins::symbol creates
them in.
Each is a field rather than a map entry because the runtime reads them on hot paths
(for…of, ToPrimitive) and because a missing one would be a bug, not a lookup
failure — reaching a default here means the builtin did not install, and every
accessor panics rather than silently answering undefined.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WellKnownSymbols
impl !Send for WellKnownSymbols
impl !Sync for WellKnownSymbols
impl !UnwindSafe for WellKnownSymbols
impl Forget for WellKnownSymbols
impl Freeze for WellKnownSymbols
impl Move for WellKnownSymbols
impl Unpin for WellKnownSymbols
impl UnsafeUnpin for WellKnownSymbols
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