Crate recursion

source ·
Expand description

Stack safe and performant recursion in Rust.

Generic utilities for expanding and collapsing user-defined recursive structures of any type. Define recursive algorithms by writing functions that expand or collapse a single layer of your structure.

Re-exports

pub use crate::recursive::Collapse;
pub use crate::recursive::Expand;
pub use crate::recursive::ExpandAsync;
pub use crate::stack_machine::expand_and_collapse;
pub use crate::stack_machine::expand_and_collapse_result;

Modules

Support for collapsing and expanding recursive structures by repeatedly expanding or collapsing it one layer at a time.