Enum syntex_syntax::ext::base::Annotatable [] [src]

pub enum Annotatable {
    Item(P<Item>),
    TraitItem(P<TraitItem>),
    ImplItem(P<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 map_item_or<F, G>(self, f: F, or: G) -> Annotatable where F: FnMut(P<Item>) -> P<Item>, G: FnMut(Annotatable) -> Annotatable

fn expect_trait_item(self) -> P<TraitItem>

fn expect_impl_item(self) -> P<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