Core.error_code: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/shape/core.bend as Core Lines 914-927 of bendtorch-core@0.1.0.0/src/shape/core.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&start_line=914&end_line=927 import Base def error_code(error: Error) -> U32: match error: case RankExceeded{}: 1 case CapacityExceeded{}: 2 case CoordinateRankMismatch{}: 3 case CoordinateOutOfBounds{}: 4 case FlatIndexOutOfBounds{}: 5 case IncompatibleBroadcast{}: 6 Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=Error