RecursionGuard
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| state | [ContainsRecursionState](containsrecursionstate.md?sid=recursion_guard_containsrecursionstate) | Mutable reference to the recursion state container used to track visited objects and nodes during traversal. |
| obj_id | usize | Unique memory address or identifier of the object currently being processed to detect circular references. |
| node_id | usize | Identifier for the specific structural node within the object to prevent infinite recursion at the same depth. |
Constructor
Signature
def RecursionGuard(
state: &'a mut S,
obj_id: usize,
node_id: usize
)
Parameters
| Name | Type | Description |
|---|---|---|
| state | &'a mut S | A mutable reference to the recursion state container. |
| obj_id | usize | The unique identifier of the object being processed. |
| node_id | usize | The unique identifier of the current node in the recursion tree. |
Signature
@staticmethod
def new(
state: &'a mut S,
obj_id: usize,
node_id: usize
) - > [RecursionGuard](recursionguard.md?sid=recursion_guard_recursionguard)
Parameters
| Name | Type | Description |
|---|---|---|
| state | &'a mut S | The mutable recursion state container used to track visited objects |
| obj_id | usize | The unique memory address or identifier of the object being processed |
| node_id | usize | The identifier for the specific schema node or validation step being executed |