pub struct MethodDecl {
pub name: Ident,
pub visibility: Option<Visibility>,
pub is_static: bool,
pub is_abstract: bool,
pub is_final: bool,
pub by_ref: bool,
pub params: Box<[Param]>,
pub return_type: Option<TypeHint>,
pub body: Option<Box<Block>>,
pub attributes: Box<[Attribute]>,
pub doc_comment: Option<Comment>,
}Fields§
§name: Ident§visibility: Option<Visibility>§is_static: bool§is_abstract: bool§is_final: bool§by_ref: bool§params: Box<[Param]>§return_type: Option<TypeHint>§body: Option<Box<Block>>§attributes: Box<[Attribute]>§doc_comment: Option<Comment>Trait Implementations§
Source§impl Clone for MethodDecl
impl Clone for MethodDecl
Source§fn clone(&self) -> MethodDecl
fn clone(&self) -> MethodDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MethodDecl
impl Debug for MethodDecl
Auto Trait Implementations§
impl Freeze for MethodDecl
impl RefUnwindSafe for MethodDecl
impl Send for MethodDecl
impl Sync for MethodDecl
impl Unpin for MethodDecl
impl UnsafeUnpin for MethodDecl
impl UnwindSafe for MethodDecl
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