Rust errors and scalar types
The safe crate exposes explicit error and scalar representations.
Error
rust
pub enum ErrorA failed Table operation.
| Variant | Meaning |
|---|---|
InvalidArgument | A pointer, count, coordinate, or finite-value requirement was violated. |
InvalidState | A native descriptor was not initialised for the requested operation. |
InvalidAxis | An axis was empty, non-finite, unordered, or collided after float32 conversion. |
IndexOutOfRange | An axis or cell index exceeded the table dimensions. |
TypeMismatch | A value or replacement used a different scalar representation. |
DimensionMismatch | Rust slices did not describe the required curve or map shape. |
SizeOverflow | Multiplying map dimensions overflowed usize. |
Scalar
rust
pub trait Scalar: private::Sealed + Copy + Debug + PartialEq + Send + Sync + 'staticA scalar representation supported by the native Table core.
ScalarType
rust
pub enum ScalarTypeA supported scalar storage representation.
| Variant | Meaning |
|---|---|
I8 | Signed 8-bit integer. |
U8 | Unsigned 8-bit integer. |
I16 | Signed 16-bit integer. |
U16 | Unsigned 16-bit integer. |
I32 | Signed 32-bit integer. |
U32 | Unsigned 32-bit integer. |
F32 | IEEE-754 single-precision floating point. |
