Struct gdnative_doc::documentation::Method
source · [−]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: bool
Does this method have a self
parameter ?
name: String
Name of the method.
self_type: String
Name of the type that is being impl
emented.
parameters: Vec<(String, Type, ParameterAttribute)>
Parameters of the method (excluding self
).
Contains:
- the name of the parameter
- it’s
Type
- eventual attributes
return_type: Type
Return type of the method.
documentation: String
file: PathBuf
File in which the method was declared
Trait Implementations
impl Eq for Method
impl StructuralEq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more