pub struct Function {
pub documentation: Option<Spanned<String>>,
pub signature: Option<Spanned<Signature>>,
pub declaration: Spanned<FunctionImplementation>,
}Expand description
A function definition (used in both top-level declarations and let blocks).
Fields§
§documentation: Option<Spanned<String>>Optional documentation comment.
signature: Option<Spanned<Signature>>Optional type signature: add : Int -> Int -> Int
declaration: Spanned<FunctionImplementation>The function implementation.
Trait Implementations§
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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