Skip to main content

mi_option_t

Type Alias mi_option_t 

Source
pub type mi_option_t = c_int;
Expand description

Mirrors mi_option_t (include/mimalloc.h).

Positional, and silently wrong if it drifts. This fork inserts thirteen enumerators (mi_option_prof*, mi_option_memory_events, mi_option_purge_zeroes, mi_option_scavenger, mi_option_purge_holes*) at indices 47..=59, immediately before _mi_option_last – so a mirror copied from upstream mimalloc would set a different option than the caller named, with no diagnostic. Every value below is checked against the C enum at test time by tests/t19_layout.rs, and the ordering is checked against include/mimalloc.h by ci/check_rust_surface.py.