archimedes.tree.is_structΒΆ
- archimedes.tree.is_struct(obj: Any) boolΒΆ
Check if an object is a registered struct class.
This function determines whether an object was created using the
struct()decorator, which indicates it has special handling for tree operations.- Parameters:
obj (Any) β The object to check.
- Returns:
is_node β
Trueif the object is a struct created with the decorator,Falseotherwise.- Return type:
bool
See also
structDecorator for creating tree-compatible dataclasses