Struct 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 const_nonmatching: bool,
pub combine_substructure: RefCell<CombineSubstructureFunc<'a>>,
}Fields
name | name of the method |
generics | List of generics, e.g. |
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 | |
const_nonmatching | if the value of the nonmatching enums is independent of the actual enum variants, i.e. can use _ => .. match. |
combine_substructure |