Module Stdlib_stable.Idx_mutSource
Mutable indices into blocks.
An alias for the type of mutable indices into blocks.
get a i uses the index i to access a.
set a i v uses the index i to set a to v.
It can take a locally and v globally because mutable indices (e.g. to array elements or mutable record fields) can only be created to elements with the global modality.
unsafe_create_into_array i creates an index into the ith element of an array.
This is unsafe because it cannot check array bounds, so calling get/set with the index later could perform an unchecked out-of-bounds access.
Source
val unsafe_create_into_array_indexed_by_int8 :
('a : any mod non_float). int8# ->
('a array, 'a) idx_mutSource
val unsafe_create_into_array_indexed_by_int16 :
('a : any mod non_float). int16# ->
('a array, 'a) idx_mutSource
val unsafe_create_into_array_indexed_by_int32 :
('a : any mod non_float). int32# ->
('a array, 'a) idx_mutSource
val unsafe_create_into_array_indexed_by_int64 :
('a : any mod non_float). int64# ->
('a array, 'a) idx_mutSource
val unsafe_create_into_array_indexed_by_nativeint :
('a : any mod non_float). nativeint# ->
('a array, 'a) idx_mut