pub enum Attribute {
Literal(Literal),
Named(Identifier, Literal),
Group(Identifier, Attributes),
}Expand description
Attribute Enum
Variants§
Literal(Literal)
Literal Variant
Named(Identifier, Literal)
Named Variant
Group(Identifier, Attributes)
Group Variant
Trait Implementations§
Source§impl From<MetaNameValue> for Attribute
impl From<MetaNameValue> for Attribute
Source§fn from(meta_name_value: MetaNameValue) -> Self
fn from(meta_name_value: MetaNameValue) -> Self
Converts to this type from the input type.
Source§impl From<NestedMeta> for Attribute
impl From<NestedMeta> for Attribute
Source§fn from(nested_meta: NestedMeta) -> Self
fn from(nested_meta: NestedMeta) -> Self
Converts to this type from the input type.
Source§impl ToTokens for Attribute
impl ToTokens for Attribute
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
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.