pub enum PureAttrMeta {
Path,
List(String),
NameValue(String),
}Expand description
The meta content of an attribute.
Follows the structure of syn::Meta:
Path: Simple path attribute like#[test]List: List attribute like#[derive(Debug, Clone)]NameValue: Name-value attribute like#[doc = "comment"]
Variants§
Path
Path only (e.g., #[test], #[inline])
List(String)
List with arguments (e.g., #[derive(Debug, Clone)] → args = “Debug, Clone”)
NameValue(String)
Name-value pair (e.g., #[doc = "comment"] → value = “"comment"”)
Trait Implementations§
Source§impl Clone for PureAttrMeta
impl Clone for PureAttrMeta
Source§fn clone(&self) -> PureAttrMeta
fn clone(&self) -> PureAttrMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PureAttrMeta
impl Debug for PureAttrMeta
Source§impl PartialEq for PureAttrMeta
impl PartialEq for PureAttrMeta
Source§fn eq(&self, other: &PureAttrMeta) -> bool
fn eq(&self, other: &PureAttrMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PureAttrMeta
impl StructuralPartialEq for PureAttrMeta
Auto Trait Implementations§
impl Freeze for PureAttrMeta
impl RefUnwindSafe for PureAttrMeta
impl Send for PureAttrMeta
impl Sync for PureAttrMeta
impl Unpin for PureAttrMeta
impl UnsafeUnpin for PureAttrMeta
impl UnwindSafe for PureAttrMeta
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