Enum syn::AttrStyle [] [src]

pub enum AttrStyle {
    Outer,
    Inner(Bang),
}

Distinguishes between attributes that decorate an item and attributes that are contained within an item.

This type is available if Syn is built with the "derive" or "full" feature.

Outer attributes

  • #[repr(transparent)]
  • /// # Example
  • /** Please file an issue */

Inner attributes

  • #![feature(proc_macro)]
  • //! # Example
  • /*! Please file an issue */

Variants

Trait Implementations

impl Copy for AttrStyle
[src]

impl Debug for AttrStyle
[src]

[src]

Formats the value using the given formatter.

impl Eq for AttrStyle
[src]

impl PartialEq for AttrStyle
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for AttrStyle
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for AttrStyle
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more