pub enum AttributeArgs {
Empty,
Parenthesized(Vec<AttributeArg>),
}Expand description
Arguments to an attribute
Variants§
Empty
No arguments: #[attr]
Parenthesized(Vec<AttributeArg>)
Parenthesized arguments: #[attr(key = value, ...)]
Trait Implementations§
Source§impl Clone for AttributeArgs
impl Clone for AttributeArgs
Source§fn clone(&self) -> AttributeArgs
fn clone(&self) -> AttributeArgs
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 AttributeArgs
impl Debug for AttributeArgs
Source§impl Default for AttributeArgs
impl Default for AttributeArgs
Source§fn default() -> AttributeArgs
fn default() -> AttributeArgs
Returns the “default value” for a type. Read more
Source§impl PartialEq for AttributeArgs
impl PartialEq for AttributeArgs
impl StructuralPartialEq for AttributeArgs
Auto Trait Implementations§
impl Freeze for AttributeArgs
impl RefUnwindSafe for AttributeArgs
impl Send for AttributeArgs
impl Sync for AttributeArgs
impl Unpin for AttributeArgs
impl UnwindSafe for AttributeArgs
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