Struct syn::token::Underscore
source · pub struct Underscore {
pub spans: [Span; 1],
}
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 Debug for Underscore
impl Debug 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 Hash for Underscore
impl Hash for Underscore
source§impl Parse for Underscore
impl Parse for Underscore
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq for Underscore
impl PartialEq for Underscore
source§fn eq(&self, _other: &Underscore) -> bool
fn eq(&self, _other: &Underscore) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 Eq 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> 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> 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.