Struct syntex_syntax::ext::deriving::generic::MethodDef [] [src]

pub struct MethodDef<'a> {
    pub name: &'a str,
    pub generics: LifetimeBounds<'a>,
    pub explicit_self: Option<Option<PtrTy<'a>>>,
    pub args: Vec<Ty<'a>>,
    pub ret_ty: Ty<'a>,
    pub attributes: Vec<Attribute>,
    pub is_unsafe: bool,
    pub combine_substructure: RefCell<CombineSubstructureFunc<'a>>,
}

Fields

name

name of the method

generics

List of generics, e.g. R: rand::Rng

explicit_self

Whether there is a self argument (outer Option) i.e. whether this is a static function, and whether it is a pointer (inner Option)

args

Arguments other than the self argument

ret_ty

Return type

attributes
is_unsafe
combine_substructure