Enum rustdoc::clean::AttributeUnstable
[-] [+]
[src]
pub enum Attribute { Word(String), List(String, Vec<Attribute>), NameValue(String, String), }
Variants
Word | |
List | |
NameValue |
pub enum Attribute { Word(String), List(String, Vec<Attribute>), NameValue(String, String), }
Word | |
List | |
NameValue |
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
impl Debug for Attribute
impl PartialEq for Attribute
impl Decodable for Attribute
impl Encodable for Attribute
impl Clone for Attribute
fn clone(&self) -> Attribute
fn clone_from(&mut self, source: &Self)
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).