Enum syntax::ext::base::Annotatable
[−]
[src]
pub enum Annotatable {
Item(P<Item>),
TraitItem(P<TraitItem>),
ImplItem(P<ImplItem>),
}Variants
Item(P<Item>)TraitItem(P<TraitItem>)ImplItem(P<ImplItem>)
Methods
impl Annotatable[src]
pub fn span(&self) -> Span[src]
pub fn expect_item(self) -> P<Item>[src]
pub fn map_item_or<F, G>(self, f: F, or: G) -> Annotatable where
F: FnMut(P<Item>) -> P<Item>,
G: FnMut(Annotatable) -> Annotatable, [src]
F: FnMut(P<Item>) -> P<Item>,
G: FnMut(Annotatable) -> Annotatable,
pub fn expect_trait_item(self) -> TraitItem[src]
pub fn expect_impl_item(self) -> ImplItem[src]
pub fn derive_allowed(&self) -> bool[src]
Trait Implementations
impl Debug for Annotatable[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Annotatable[src]
fn clone(&self) -> Annotatable[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more