Skip to main content

stream_draws

Function stream_draws 

Source
pub fn stream_draws(axiom: &str, rules: &[(char, String)], depth: u32) -> u64
Expand description

How many draw steps the derivation of axiom under rules to depth holds, counted without expanding it: per rule, the draws its successor yields one level down, built up level by level. Saturates at u64::MAX.

Load-time, and O(depth * total successor length).