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 combine_substructure: RefCell<CombineSubstructureFunc<'a>>,
}
Fields
name | |
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 | |
attributes | |
combine_substructure | |
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
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
).