@errorToInt
@errorToInt
@errorToInt(err: anytype) std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)
Supports the following types:
- The Global Error Set
- Error Set Type
- Error Union Type
Converts an error to the integer representation of an error.
It is generally recommended to avoid this cast, as the integer representation of an error is not stable across source code changes.
See also:
- @intToError
