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 – True if the object is a struct created with the decorator, False otherwise.

Return type:

bool

See also

struct

Decorator for creating tree-compatible dataclasses