Enum syntax::ext::base::Annotatable   [−][src]
pub enum Annotatable {
    Item(P<Item>),
    TraitItem(P<TraitItem>),
    ImplItem(P<ImplItem>),
    ForeignItem(P<ForeignItem>),
    Stmt(P<Stmt>),
    Expr(P<Expr>),
}Variants
Item(P<Item>)TraitItem(P<TraitItem>)ImplItem(P<ImplItem>)ForeignItem(P<ForeignItem>)Stmt(P<Stmt>)Expr(P<Expr>)
                    Methods
impl Annotatable[src] 
impl Annotatablepub fn span(&self) -> Span[src] 
pub fn span(&self) -> Spanpub fn expect_item(self) -> P<Item>[src] 
pub fn expect_item(self) -> P<Item>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] 
pub fn map_item_or<F, G>(self, f: F, or: G) -> Annotatable where
    F: FnMut(P<Item>) -> P<Item>,
    G: FnMut(Annotatable) -> Annotatable, pub fn expect_trait_item(self) -> TraitItem[src] 
pub fn expect_trait_item(self) -> TraitItempub fn expect_impl_item(self) -> ImplItem[src] 
pub fn expect_impl_item(self) -> ImplItempub fn expect_foreign_item(self) -> ForeignItem[src] 
pub fn expect_foreign_item(self) -> ForeignItempub fn expect_stmt(self) -> Stmt[src] 
pub fn expect_stmt(self) -> Stmtpub fn expect_expr(self) -> P<Expr>[src] 
pub fn expect_expr(self) -> P<Expr>pub fn derive_allowed(&self) -> bool[src] 
pub fn derive_allowed(&self) -> boolTrait Implementations
impl Debug for Annotatable[src] 
impl Debug for Annotatablefn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Annotatable[src] 
impl Clone for Annotatablefn clone(&self) -> Annotatable[src] 
fn clone(&self) -> AnnotatableReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl HasAttrs for Annotatable[src] 
impl HasAttrs for Annotatablefn attrs(&self) -> &[Attribute][src] 
fn attrs(&self) -> &[Attribute]fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self[src] 
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Selfimpl Into<Vec<Annotatable>> for Annotatable[src] 
impl Into<Vec<Annotatable>> for AnnotatableAuto Trait Implementations
impl !Send for Annotatable
impl !Send for Annotatableimpl !Sync for Annotatable
impl !Sync for Annotatable