pub struct Method {
pub doc: Doc,
pub returns: Type,
pub name: Ident,
pub params: Vec<Param>,
pub is_const: bool,
pub is_static: bool,
pub is_virtual: bool,
pub is_pure: bool,
pub is_constexpr: bool,
pub is_noexcept: bool,
pub is_override: bool,
pub body: Option<Block>,
}Expand description
A member function.
Fields§
§doc: DocDocumentation.
returns: TypeReturn type.
name: IdentName.
params: Vec<Param>Parameters.
is_const: boolconst on the method.
is_static: boolstatic.
is_virtual: boolvirtual.
is_pure: bool= 0.
is_constexpr: boolconstexpr.
is_noexcept: boolnoexcept.
is_override: booloverride.
body: Option<Block>The body, absent for a declaration.
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 UnsafeUnpin 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