Struct syntax::ext::deriving::generic::TraitDef
[−]
[src]
pub struct TraitDef<'a> {
pub span: Span,
pub attributes: Vec<Attribute>,
pub path: Path<'a>,
pub additional_bounds: Vec<Ty<'a>>,
pub generics: LifetimeBounds<'a>,
pub methods: Vec<MethodDef<'a>>,
pub associated_types: Vec<(Ident, Ty<'a>)>,
}Unstable
Fields
span | Unstable The span for the current #[derive(Foo)] header. |
attributes | Unstable |
path | Unstable Path of the trait, including any type parameters |
additional_bounds | Unstable Additional bounds required of any type parameters of the type, other than the current trait |
generics | Unstable Any extra lifetimes and/or bounds, e.g. |
methods | Unstable |
associated_types | Unstable |
Methods
impl<'a> TraitDef<'a>
fn expand(&self, cx: &mut ExtCtxt, mitem: &MetaItem, item: &'a Annotatable, push: &mut FnMut(Annotatable))
Unstable