pub struct FunctionDeclaration {
pub name: Identifier,
pub parameters: Box<[FunctionParameter]>,
pub return_type: Ty,
pub body: SpannedItem<Expression>,
pub visibility: Visibility,
}
Fields§
§name: Identifier
§parameters: Box<[FunctionParameter]>
§return_type: Ty
§body: SpannedItem<Expression>
§visibility: Visibility
Implementations§
Source§impl FunctionDeclaration
impl FunctionDeclaration
pub fn is_exported(&self) -> bool
Trait Implementations§
Source§impl Clone for FunctionDeclaration
impl Clone for FunctionDeclaration
Source§fn clone(&self) -> FunctionDeclaration
fn clone(&self) -> FunctionDeclaration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PrettyPrint for FunctionDeclaration
impl PrettyPrint for FunctionDeclaration
fn pretty_print(&self, interner: &SymbolInterner, indentation: usize) -> String
Auto Trait Implementations§
impl Freeze for FunctionDeclaration
impl RefUnwindSafe for FunctionDeclaration
impl !Send for FunctionDeclaration
impl !Sync for FunctionDeclaration
impl Unpin for FunctionDeclaration
impl UnwindSafe for FunctionDeclaration
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