pub enum WellKnown {
Show 15 variants
ToPrimitive,
Iterator,
Match,
MatchAll,
Replace,
Search,
Split,
ToStringTag,
IsConcatSpreadable,
HasInstance,
Species,
Unscopables,
AsyncIterator,
Disposable,
AsyncDisposable,
}Expand description
Which well-known symbol a caller wants.
A typed accessor beats passing a name around: a typo is a compile error rather than
an undefined key that quietly matches nothing.
Variants§
ToPrimitive
Symbol.toPrimitive.
Iterator
Symbol.iterator.
Match
Symbol.match.
MatchAll
Symbol.matchAll.
Replace
Symbol.replace.
Search
Symbol.search.
Split
Symbol.split.
ToStringTag
Symbol.toStringTag.
IsConcatSpreadable
Symbol.isConcatSpreadable.
HasInstance
Symbol.hasInstance.
Species
Symbol.species.
Unscopables
Symbol.unscopables.
AsyncIterator
Symbol.asyncIterator.
Disposable
Symbol.dispose — the well-known name of a disposable resource’s disposer.
AsyncDisposable
Symbol.asyncDispose — the awaited form.
Trait Implementations§
impl Copy for WellKnown
impl Eq for WellKnown
impl StructuralPartialEq for WellKnown
Auto Trait Implementations§
impl Forget for WellKnown
impl Freeze for WellKnown
impl Move for WellKnown
impl RefUnwindSafe for WellKnown
impl Send for WellKnown
impl Sync for WellKnown
impl Unpin for WellKnown
impl UnsafeUnpin for WellKnown
impl UnwindSafe for WellKnown
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