pub struct Underscore(pub [Span; 1]);
Expand description
_
Don’t try to remember the name of this type – use the Token!
macro instead.
Tuple Fields§
§0: [Span; 1]
Implementations§
Trait Implementations§
Source§impl Clone for Underscore
impl Clone for Underscore
Source§fn clone(&self) -> Underscore
fn clone(&self) -> Underscore
Returns a duplicate of the value. Read more
1.0.0 · 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 Underscore
impl Debug for Underscore
Source§impl Default for Underscore
impl Default for Underscore
Source§impl From<Span> for Underscore
impl From<Span> for Underscore
Source§impl Hash for Underscore
impl Hash for Underscore
Source§impl PartialEq for Underscore
impl PartialEq for Underscore
Source§impl Synom for Underscore
impl Synom for Underscore
Source§impl ToTokens for Underscore
impl ToTokens for Underscore
impl Copy for Underscore
impl Eq for Underscore
Auto Trait Implementations§
impl Freeze for Underscore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
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.