pub enum FutharkStmt {
LetBinding(String, Option<FutharkType>, FutharkExpr),
LetTupleBinding(Vec<String>, FutharkExpr),
LoopBinding(String, FutharkExpr, String, FutharkExpr, Vec<FutharkStmt>),
ReturnExpr(FutharkExpr),
Comment(String),
}Expand description
Futhark statement (top-level body items inside functions).
Variants§
LetBinding(String, Option<FutharkType>, FutharkExpr)
let x = e
LetTupleBinding(Vec<String>, FutharkExpr)
let (x, y) = e
LoopBinding(String, FutharkExpr, String, FutharkExpr, Vec<FutharkStmt>)
Loop binding: loop (acc = init) for i < n do body
ReturnExpr(FutharkExpr)
Return expression (final expression in block)
Comment(String)
Comment
Trait Implementations§
Source§impl Clone for FutharkStmt
impl Clone for FutharkStmt
Source§fn clone(&self) -> FutharkStmt
fn clone(&self) -> FutharkStmt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FutharkStmt
impl RefUnwindSafe for FutharkStmt
impl Send for FutharkStmt
impl Sync for FutharkStmt
impl Unpin for FutharkStmt
impl UnsafeUnpin for FutharkStmt
impl UnwindSafe for FutharkStmt
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