Enum syntax::ext::base::AnnotatableUnstable [-] [+] [src]

pub enum Annotatable {
    Item(P<Item>),
    TraitItem(TraitItem),
    ImplItem(ImplItem),
}

Variants

Item
TraitItem
ImplItem

Methods

impl Annotatable

fn attrs(&self) -> &[Attribute]

fn fold_attrs(self, attrs: Vec<Attribute>) -> Annotatable

fn expect_item(self) -> P<Item>

fn expect_trait_item(self) -> TraitItem

fn expect_impl_item(self) -> ImplItem

Trait Implementations

Derived Implementations

impl Clone for Annotatable

fn clone(&self) -> Annotatable

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

impl Debug for Annotatable

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