Function assert_cpu_features

Source
pub fn assert_cpu_features()
Expand description

Panic if the current binary uses features unsupported by the current CPU.

vectoreyes uses compile-time flags to select which backend to use and which CPU features to require. If this backend is used on an unsupported CPU, it will result in an “Illegal instruction” error (technically, all Rust code–not even just vectoreyes code–may result in undefined behavior if run on a CPU that doesn’t support the compile-time selected feature flags).

It would be advisable to call this in the main() function of executables to try to catch these errors early.