pub struct FuncDef {
pub name: String,
pub params: Vec<FuncParam>,
pub return_type: Option<ScalarType>,
pub body: FuncBody,
pub is_private: bool,
}Expand description
User-defined function
Fields§
§name: StringFunction name
params: Vec<FuncParam>Parameters
return_type: Option<ScalarType>Optional return type annotation
body: FuncBodyFunction body
is_private: boolIs this function private?
Trait Implementations§
impl StructuralPartialEq for FuncDef
Auto Trait Implementations§
impl Freeze for FuncDef
impl RefUnwindSafe for FuncDef
impl Send for FuncDef
impl Sync for FuncDef
impl Unpin for FuncDef
impl UnsafeUnpin 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