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
[src]

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
[src]

fn clone(&self) -> Annotatable

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Annotatable
[src]

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

Formats the value using the given formatter.