Enum rustdoc::clean::AttributeUnstable [-] [+] [src]

pub enum Attribute {
    Word(String),
    List(String, Vec<Attribute>),
    NameValue(String, String),
}

Variants

Word
List
NameValue

Trait Implementations

impl AttrMetaMethods for Attribute

fn name(&self) -> InternedString

fn value_str(&self) -> Option<InternedString>

fn meta_item_list<'a>(&'a self) -> Option<&'a [P<MetaItem>]>

fn span(&self) -> Span

fn check_name(&self, name: &str) -> bool

impl<'a> AttrMetaMethods for &'a Attribute

fn name(&self) -> InternedString

fn value_str(&self) -> Option<InternedString>

fn meta_item_list(&self) -> Option<&[P<MetaItem>]>

fn span(&self) -> Span

fn check_name(&self, name: &str) -> bool

Derived Implementations

impl Debug for Attribute

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Attribute

fn eq(&self, __arg_0: &Attribute) -> bool

fn ne(&self, __arg_0: &Attribute) -> bool

impl Decodable for Attribute

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Attribute, __D>

impl Encodable for Attribute

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S>

impl Clone for Attribute

fn clone(&self) -> Attribute

fn clone_from(&mut self, source: &Self)