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 AttributeTrait Implementations
impl ToTokens for Attribute[src]
impl ToTokens for Attributeimpl Debug for Attribute[src]
impl Debug for Attributefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Attribute[src]
impl Clone for Attributefn clone(&self) -> Attribute[src]
fn clone(&self) -> AttributeReturns 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 Attributeimpl PartialEq for Attribute[src]
impl PartialEq for Attributefn eq(&self, other: &Attribute) -> bool[src]
fn eq(&self, other: &Attribute) -> boolThis 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) -> boolThis method tests for !=.
impl Hash for Attribute[src]
impl Hash for Attribute