pub struct _AddEql { /* private fields */ }Expand description
The typed Token![+=] atom.
Trait Implementations§
impl Eq for _AddEql
Source§impl From<_AddEql> for BinaryOperator
impl From<_AddEql> for BinaryOperator
Source§impl Lex for _AddEql
impl Lex for _AddEql
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for _AddEqlwhere
N: ExternalCstNode,
impl<N> Migrate<N> for _AddEqlwhere
N: ExternalCstNode,
Source§impl Parse for _AddEql
impl Parse for _AddEql
Source§fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Consumes this value from
input. Read moreSource§impl PrettyTree for _AddEql
impl PrettyTree for _AddEql
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl Spanned for _AddEql
impl Spanned for _AddEql
impl StructuralPartialEq for _AddEql
Source§impl Terminal for _AddEql
impl Terminal for _AddEql
Source§fn leading_trivia(&self) -> &LeadingTrivia
fn leading_trivia(&self) -> &LeadingTrivia
Borrows the comments preceding this terminal.
Source§fn leading_trivia_mut(&mut self) -> &mut LeadingTrivia
fn leading_trivia_mut(&mut self) -> &mut LeadingTrivia
Mutably borrows the comments preceding this terminal.
Source§fn trailing_trivia(&self) -> &TrailingTrivia
fn trailing_trivia(&self) -> &TrailingTrivia
Borrows the comments following this terminal.
Source§fn trailing_trivia_mut(&mut self) -> &mut TrailingTrivia
fn trailing_trivia_mut(&mut self) -> &mut TrailingTrivia
Mutably borrows the comments following this terminal.
Source§fn set_leading_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
fn set_leading_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
Replaces the comments preceding this terminal.
Source§fn set_trailing_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
fn set_trailing_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
Replaces the comments and layout characters following this terminal.
Source§impl Token for _AddEql
impl Token for _AddEql
Source§const SPELLING: &'static str = "+="
const SPELLING: &'static str = "+="
Canonical spelling used in diagnostics and freshly constructed atoms.
Source§fn matches_token_tree(token: &TokenTree) -> bool
fn matches_token_tree(token: &TokenTree) -> bool
Tests whether a raw atom belongs to this closed token type.
Source§fn from_token_tree(token: TokenTree) -> Option<Self>
fn from_token_tree(token: TokenTree) -> Option<Self>
Validates and retains a raw atom as this typed token.
Source§fn from_token_tree_with_trivia(
token: TokenTree,
trailing_trivia: TrailingTrivia,
) -> Option<Self>
fn from_token_tree_with_trivia( token: TokenTree, trailing_trivia: TrailingTrivia, ) -> Option<Self>
Validates a raw atom and attaches the non-space trivia following it.
Auto Trait Implementations§
impl Freeze for _AddEql
impl RefUnwindSafe for _AddEql
impl Send for _AddEql
impl Sync for _AddEql
impl Unpin for _AddEql
impl UnsafeUnpin for _AddEql
impl UnwindSafe for _AddEql
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