Function tramp::tramp [−][src]
pub fn tramp<T>(
start: impl FnOnce() -> Rec<T> + 'static
) -> T
Given an input closure which returns the Rec
type, this function performs
a trampoline over the returned value. While Rec::Call(thunk)
is returned,
this function will keep evauating thunk
. Whenever Rec::Done(x)
is
found, x
is returned.