pub struct FunctionDecl {
pub name: Ident,
pub params: Box<[Param]>,
pub body: Box<[Stmt]>,
pub return_type: Option<TypeHint>,
pub by_ref: bool,
pub attributes: Box<[Attribute]>,
pub doc_comment: Option<Comment>,
}Fields§
§name: Ident§params: Box<[Param]>§body: Box<[Stmt]>§return_type: Option<TypeHint>§by_ref: bool§attributes: Box<[Attribute]>§doc_comment: Option<Comment>Trait Implementations§
Source§impl Clone for FunctionDecl
impl Clone for FunctionDecl
Source§fn clone(&self) -> FunctionDecl
fn clone(&self) -> FunctionDecl
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 FunctionDecl
impl Debug for FunctionDecl
Auto Trait Implementations§
impl Freeze for FunctionDecl
impl RefUnwindSafe for FunctionDecl
impl Send for FunctionDecl
impl Sync for FunctionDecl
impl Unpin for FunctionDecl
impl UnsafeUnpin for FunctionDecl
impl UnwindSafe for FunctionDecl
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