#recursion #stackless #functional #monads #trampoline

tailrec

Trait-based stack-safe recursion in Rust

4 releases

Uses old Rust 2015

0.0.4 Mar 21, 2015
0.0.3 Mar 21, 2015
0.0.2 Mar 21, 2015
0.0.1 Nov 21, 2014

#3 in #stackless


Used in 2 crates

MIT license

4KB

tailrec.rs

Trait-based stackless recursion in Rust

build status

Documentation

See the API documentation here.

Requirements

  1. Rust
  2. Cargo

You can install both with the following:

$ curl -s https://static.rust-lang.org/rustup.sh | sudo sh

See Installing Rust for further details.

Usage

$ cargo build       ## build library and binary
$ cargo test        ## run tests in ./tests
$ cargo bench       ## run benchmarks in ./benches

No runtime deps