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
Available on crate feature extra-traits only.
impl Debug for Underscore
Available on crate feature
extra-traits only.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
Available on crate feature extra-traits only.
impl Hash for Underscore
Available on crate feature
extra-traits only.Source§impl PartialEq for Underscore
Available on crate feature extra-traits only.
impl PartialEq for Underscore
Available on crate feature
extra-traits only.Source§impl Synom for Underscore
Available on crate feature parsing only.
impl Synom for Underscore
Available on crate feature
parsing only.Source§impl ToTokens for Underscore
Available on crate feature printing only.
impl ToTokens for Underscore
Available on crate feature
printing only.impl Copy for Underscore
impl Eq for Underscore
Available on crate feature
extra-traits only.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.