Skip to main content

ContainsRecursionState

No overview available.

Methods


access_recursion_state()

def access_recursion_state(
f: impl FnOnce(&mut RecursionState)- > R
) - > R

Provides access to the internal recursion state by executing a callback function with a mutable reference to the state.

Parameters

NameTypeDescription
fimpl FnOnce(&mut RecursionState)- > RA closure or function that receives a mutable reference to the RecursionState to perform operations or checks.

Returns

TypeDescription
RThe result returned by the provided callback function after it has operated on the recursion state.