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 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.
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