#[non_exhaustive]pub enum NameErrorKind {
Whitespace,
Invisible,
NotAnIdentifier,
AmbiguousAscii,
DottedName,
}Expand description
The class of character that made a name unreadable.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Whitespace
Whitespace: the name looks like more than one word.
Invisible
A format or bidi control: the name does not render as it parses.
NotAnIdentifier
Not an identifier character in any script, and not an emoji.
AmbiguousAscii
ASCII punctuation a word may hold but a name may not, because it does not read back through every spelling of a reference.
DottedName
A dot, which reads as collection access rather than as part of a name.
Trait Implementations§
Source§impl Clone for NameErrorKind
impl Clone for NameErrorKind
Source§fn clone(&self) -> NameErrorKind
fn clone(&self) -> NameErrorKind
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 moreimpl Copy for NameErrorKind
Source§impl Debug for NameErrorKind
impl Debug for NameErrorKind
impl Eq for NameErrorKind
Source§impl PartialEq for NameErrorKind
impl PartialEq for NameErrorKind
impl StructuralPartialEq for NameErrorKind
Auto Trait Implementations§
impl Freeze for NameErrorKind
impl RefUnwindSafe for NameErrorKind
impl Send for NameErrorKind
impl Sync for NameErrorKind
impl Unpin for NameErrorKind
impl UnsafeUnpin for NameErrorKind
impl UnwindSafe for NameErrorKind
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.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.