pub struct SemanticToken<'src> {
pub token: Token<'src>,
pub semantic_type: Option<TokenType>,
pub modifiers: u32,
}Fields§
§token: Token<'src>§semantic_type: Option<TokenType>§modifiers: u32Trait Implementations§
Source§impl<'src> Clone for SemanticToken<'src>
impl<'src> Clone for SemanticToken<'src>
impl<'src> Copy for SemanticToken<'src>
Source§impl<'src> Debug for SemanticToken<'src>
impl<'src> Debug for SemanticToken<'src>
Source§impl<'src> PartialEq for SemanticToken<'src>
impl<'src> PartialEq for SemanticToken<'src>
impl<'src> StructuralPartialEq for SemanticToken<'src>
Auto Trait Implementations§
impl<'src> Freeze for SemanticToken<'src>
impl<'src> RefUnwindSafe for SemanticToken<'src>
impl<'src> Send for SemanticToken<'src>
impl<'src> Sync for SemanticToken<'src>
impl<'src> Unpin for SemanticToken<'src>
impl<'src> UnsafeUnpin for SemanticToken<'src>
impl<'src> UnwindSafe for SemanticToken<'src>
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,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T> SpanExt for T
impl<T> SpanExt for T
fn with_span(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
Source§fn spanned(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
fn spanned(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
Same as
Self::with_span, but can avoid name collisionsfn with_dummy_span(self) -> Spanned<Self>where
Self: Sized,
fn into_with_dummy_span<T>(self) -> Spanned<T>where
Self: Into<T>,
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.