pub struct MethodDecl {
pub id: HirId,
pub name: Ustr,
pub params: Vec<ParamDecl>,
pub signature: MethodSig,
pub access_flags: u16,
pub source_line: Option<u16>,
pub generic_signature: Option<String>,
pub throws: Vec<Ty>,
pub body: Body,
pub root_block: Option<Block>,
pub constructor_call: Option<SuperConstructorCall>,
}Fields§
§id: HirId§name: Ustr§params: Vec<ParamDecl>§signature: MethodSig§access_flags: u16§source_line: Option<u16>§generic_signature: Option<String>§throws: Vec<Ty>§body: Body§root_block: Option<Block>§constructor_call: Option<SuperConstructorCall>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 moreAuto 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