Struct syn::Attribute [−][src]
Doc-comments are promoted to attributes that have is_sugared_doc
= true
Fields
style: AttrStyle
value: MetaItem
is_sugared_doc: bool
Methods
impl Attribute
[src]
impl Attribute
Trait Implementations
impl ToTokens for Attribute
[src]
impl ToTokens for Attribute
impl Debug for Attribute
[src]
impl Debug for Attribute
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Attribute
[src]
impl Clone for Attribute
fn clone(&self) -> Attribute
[src]
fn clone(&self) -> Attribute
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Attribute
[src]
impl Eq for Attribute
impl PartialEq for Attribute
[src]
impl PartialEq for Attribute
fn eq(&self, other: &Attribute) -> bool
[src]
fn eq(&self, other: &Attribute) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Attribute) -> bool
[src]
fn ne(&self, other: &Attribute) -> bool
This method tests for !=
.
impl Hash for Attribute
[src]
impl Hash for Attribute