pub struct FnDecl {
pub public: bool,
pub intrinsic: bool,
pub sig: FnSig,
pub body: Option<Block>,
}Expand description
A function or method declaration.
Fields§
§public: boolpub
intrinsic: boolintrinsic
sig: FnSigThe signature.
body: Option<Block>The body; absent for intrinsic functions and on some errors.
Trait Implementations§
impl StructuralPartialEq for FnDecl
Auto Trait Implementations§
impl Freeze for FnDecl
impl RefUnwindSafe for FnDecl
impl Send for FnDecl
impl Sync for FnDecl
impl Unpin for FnDecl
impl UnsafeUnpin for FnDecl
impl UnwindSafe for FnDecl
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