pub struct FuncDef {
pub name: String,
pub positional_params: Vec<FuncParam>,
pub named_params: Vec<FuncParam>,
pub body: Box<Expr>,
pub return_ty: Option<Expr>,
}Expand description
Function definition.
Fields§
§name: String§positional_params: Vec<FuncParam>§named_params: Vec<FuncParam>§body: Box<Expr>§return_ty: Option<Expr>Trait Implementations§
source§impl<'de> Deserialize<'de> for FuncDef
impl<'de> Deserialize<'de> for FuncDef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<FuncDef> for FuncDef
impl PartialEq<FuncDef> for FuncDef
impl StructuralPartialEq for FuncDef
Auto Trait Implementations§
impl RefUnwindSafe for FuncDef
impl Send for FuncDef
impl Sync for FuncDef
impl Unpin for FuncDef
impl UnwindSafe for FuncDef
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