Enum syntax::ext::base::AnnotatableUnstable
[-] [+]
[src]
pub enum Annotatable { Item(P<Item>), TraitItem(TraitItem), ImplItem(ImplItem), }
Variants
Item | |
TraitItem | |
ImplItem |
pub enum Annotatable { Item(P<Item>), TraitItem(TraitItem), ImplItem(ImplItem), }
Item | |
TraitItem | |
ImplItem |
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
impl Clone for Annotatable
fn clone(&self) -> Annotatable
fn clone_from(&mut self, source: &Self)
impl Debug for Annotatable
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).