Struct syn::token::Underscore
source · Expand description
_
Usage: wildcard patterns, inferred types, unnamed items in constants, extern crates, use declarations, and destructuring assignment.
Don’t try to remember the name of this type — use the
Token!
macro instead.
Fields§
§spans: [Span; 1]
Trait Implementations§
source§impl Clone for Underscore
impl Clone for Underscore
source§impl Default for Underscore
impl Default for Underscore
source§impl Deref for Underscore
impl Deref for Underscore
source§impl DerefMut for Underscore
impl DerefMut for Underscore
source§impl From<Underscore> for Ident
impl From<Underscore> for Ident
source§fn from(token: Underscore) -> Ident
fn from(token: Underscore) -> Ident
Converts to this type from the input type.
source§impl Parse for Underscore
impl Parse for Underscore
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl ToTokens for Underscore
impl ToTokens for Underscore
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Copy for Underscore
impl Token for Underscore
Auto Trait Implementations§
impl RefUnwindSafe for Underscore
impl !Send for Underscore
impl !Sync for Underscore
impl Unpin for Underscore
impl UnwindSafe for Underscore
Blanket Implementations§
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.