pub struct Method {
pub has_self: bool,
pub name: String,
pub self_type: String,
pub parameters: Vec<(String, Type, ParameterAttribute)>,
pub return_type: Type,
pub documentation: String,
pub file: PathBuf,
}Expand description
Method in an impl block.
Fields§
§has_self: boolDoes this method have a self parameter ?
name: StringName of the method.
self_type: StringName of the type that is being implemented.
parameters: Vec<(String, Type, ParameterAttribute)>Parameters of the method (excluding self).
Contains:
- the name of the parameter
- it’s
Type - eventual attributes
return_type: TypeReturn type of the method.
documentation: String§file: PathBufFile in which the method was declared
Trait Implementations§
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more