pub enum AttrArg {
Str(String),
Int {
text: String,
negative: bool,
},
Float {
text: String,
negative: bool,
},
Bool(bool),
Other,
}Expand description
The argument of an attribute: one literal, a number optionally after
-, with a number’s raw text as lexed and a string’s text between the
quotes, unmodified.
Variants§
Str(String)
Int
Float
Bool(bool)
Other
Anything else between the parentheses (#[derive(Clone)]): kept
so the resolver can name the attribute, never a valid argument.
Trait Implementations§
impl Eq for AttrArg
impl StructuralPartialEq for AttrArg
Auto Trait Implementations§
impl Freeze for AttrArg
impl RefUnwindSafe for AttrArg
impl Send for AttrArg
impl Sync for AttrArg
impl Unpin for AttrArg
impl UnsafeUnpin for AttrArg
impl UnwindSafe for AttrArg
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