Rust Code Block

Rust Code Block

The Rust Code block allows users to inject small Rust functions into their Pictorus app.

The syntax is currently pretty brittle, and only allows native functions (no imported crates). Eventually we'll support more a robust crate system. In the mean time, this is a great way to introduce a quick for loop, or similar need that may be tricky to diagram with the existing block set.

Examples

Example implementation of the Collatz Conjecture using a Rust Code block: Rust Code Example