pub struct Method {
pub docs: Vec<Doc>,
pub decl: FnDecl,
pub span: Span,
}Expand description
A method inside an impl block.
Fields§
§docs: Vec<Doc>Doc comments.
decl: FnDeclThe function.
span: SpanThe whole method.
Trait Implementations§
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