pub struct FuncDecl {
pub name: Ident,
pub params: Vec<FuncParam>,
pub body: Expr,
pub span: Span,
}Expand description
func NAME(params) { body }
User-defined helper function for reuse (like TLA+ operator definitions).
Functions are pure and are inlined at call sites during compilation.
Fields§
§name: Ident§params: Vec<FuncParam>§body: Expr§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for FuncDecl
impl RefUnwindSafe for FuncDecl
impl Send for FuncDecl
impl Sync for FuncDecl
impl Unpin for FuncDecl
impl UnwindSafe for FuncDecl
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