Expand description
§NumericArrayView Module - Windowed View over a NumericArray
NumericArrayV is a read-only, windowed view over a NumericArray.
It groups all integer and float variants and exposes a zero-copy slice
[offset .. offset + len) for fast, indexable access.
§Role
- Lets APIs accept either a full
NumericArrayor a pre-sliced view. - Avoids deep copies while enabling per-window operations and previews.
- Can cache per-window null counts to speed up repeated scans.
§Behaviour
- Works across numeric variants (ints + floats) behind
NumericArray. - Provides convenience accessors like
get_f64that upcast tof64for uniform downstream handling. - Slicing returns another borrowed view; data buffers are not cloned.
§Threading
- Thread-safe for sharing across threads (uses
OnceLockfor null count caching). - Safe to share via
Arcfor parallel processing.
§Interop
- Convert to an owned
NumericArrayof the window viato_numeric_array. - Lift to
Arraywithinner_arraywhen you need enum-level APIs.
§Invariants
offset + len <= array.len()lenis the logical row count of this view.
Structs§
- Numeric
ArrayV - NumericArrayView