Module quotations

Module quotations 

Source
Expand description

Quotation operations for Seq

Quotations are deferred code blocks (first-class functions). A quotation is represented as a function pointer stored as usize.

Re-exports§

pub use patch_seq_call as call;
pub use patch_seq_push_quotation as push_quotation;
pub use patch_seq_spawn as spawn;
pub use patch_seq_times as times;
pub use patch_seq_until_loop as until_loop;
pub use patch_seq_while_loop as while_loop;

Functions§

patch_seq_call
Call a quotation or closure
patch_seq_peek_is_quotation
Check if the top of stack is a quotation (not a closure)
patch_seq_peek_quotation_fn_ptr
Get the impl_ function pointer from a quotation on top of stack
patch_seq_push_quotation
Push a quotation onto the stack with both wrapper and impl pointers
patch_seq_spawn
Spawn a quotation or closure as a new strand (green thread)
patch_seq_times
Execute a quotation n times
patch_seq_until_loop
Loop until a condition is true
patch_seq_while_loop
Loop while a condition is true