pub struct FunctionImplementation {
pub name: Spanned<Ident>,
pub args: Vec<Spanned<Pattern>>,
pub body: Spanned<Expr>,
}Expand description
The implementation part of a function definition: name args = body
Fields§
§name: Spanned<Ident>§args: Vec<Spanned<Pattern>>§body: Spanned<Expr>Trait Implementations§
Source§impl Clone for FunctionImplementation
impl Clone for FunctionImplementation
Source§fn clone(&self) -> FunctionImplementation
fn clone(&self) -> FunctionImplementation
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 FunctionImplementation
impl Debug for FunctionImplementation
Source§impl PartialEq for FunctionImplementation
impl PartialEq for FunctionImplementation
Source§fn eq(&self, other: &FunctionImplementation) -> bool
fn eq(&self, other: &FunctionImplementation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FunctionImplementation
impl StructuralPartialEq for FunctionImplementation
Auto Trait Implementations§
impl Freeze for FunctionImplementation
impl RefUnwindSafe for FunctionImplementation
impl Send for FunctionImplementation
impl Sync for FunctionImplementation
impl Unpin for FunctionImplementation
impl UnsafeUnpin for FunctionImplementation
impl UnwindSafe for FunctionImplementation
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