Attribute Macro reciter::reciter

source ·
#[reciter]
Expand description

Converts a recursive function into an Iterator, which uses a cache

Parameters

cache
value: “auto” | “no-limit” | integer

Sets the size of the cache the Iterator is using.

“no-limit” additionally implements a public method for the Iterator pub fn calculated_values(&self) -> &Vec<#ty> which returns a reference to the cache

start
value: integer

Sets the counter of the Iterator at the start (most of the time 0 or 1)