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
| Name | Type | Description |
|---|---|---|
| f | impl FnOnce(&mut RecursionState)- > R | A closure or function that receives a mutable reference to the RecursionState to perform operations or checks. |
Returns
| Type | Description |
|---|---|
R | The result returned by the provided callback function after it has operated on the recursion state. |