pub struct IdentToken { /* private fields */ }Expand description
An identifier spelling and its source span.
Implementations§
Trait Implementations§
Source§impl Clone for IdentToken
impl Clone for IdentToken
Source§fn clone(&self) -> IdentToken
fn clone(&self) -> IdentToken
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 moreSource§impl Debug for IdentToken
impl Debug for IdentToken
Source§impl Display for IdentToken
impl Display for IdentToken
impl Eq for IdentToken
Source§impl Lex for IdentToken
impl Lex for IdentToken
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 Parse for IdentToken
impl Parse for IdentToken
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 PartialEq for IdentToken
impl PartialEq for IdentToken
Source§impl Spanned for IdentToken
impl Spanned for IdentToken
impl StructuralPartialEq for IdentToken
Auto Trait Implementations§
impl Freeze for IdentToken
impl RefUnwindSafe for IdentToken
impl Send for IdentToken
impl Sync for IdentToken
impl Unpin for IdentToken
impl UnsafeUnpin for IdentToken
impl UnwindSafe for IdentToken
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