pub enum Item {
Identifier(Ident),
IdentifierWraper(IdentWraper),
Literal(LitInt),
String(LitStr),
}Expand description
A single lexical item encountered while parsing attribute arguments.
Variants§
Identifier(Ident)
A plain identifier, typically an argument name.
IdentifierWraper(IdentWraper)
An identifier captured through IdentWraper.
Literal(LitInt)
A bare integer literal.
String(LitStr)
A bare string literal, treated as the default argument.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Item
impl !Sync for Item
impl Freeze for Item
impl RefUnwindSafe for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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