No description
Find a file
Wanja Hentze 2d72dbbb78
add portable SIMD toggling support for large-scale enterprise deployments (#1)
As global usage of compute resources keeps climbing, driven by machine learning and virtual reality,
we have to find ever new ways to make our programs more efficient.
To this end, I have added a hyperoptimized SIMD version of the very important bool toggling functionality.

This introduces const generics to the crate, so MSRV will have to be bumped to 1.2000.0 in the upcoming release.
2024-02-08 20:03:49 +01:00
.github/workflows fix arm64 2024-02-08 19:45:19 +01:00
src add portable SIMD toggling support for large-scale enterprise deployments (#1) 2024-02-08 20:03:49 +01:00
.gitignore the crate 2024-02-08 18:13:45 +01:00
Cargo.lock the crate 2024-02-08 18:13:45 +01:00
Cargo.toml repo 2024-02-08 18:16:28 +01:00
LICENSE Create LICENSE 2024-02-08 18:14:08 +01:00
README.md the crate 2024-02-08 18:13:45 +01:00

i love toggling bools it's one of my favourite things to do

Provides fn toggle(&mut self) on bool for toggling bools.

use bool_toggle::TogglingIsALifestyle;
let mut omg_i_want_to_be_toggled_soooo_badly = false;
assert_eq!(omg_i_want_to_be_toggled_soooo_badly, false);
omg_i_want_to_be_toggled_soooo_badly.toggle();
assert_eq!(omg_i_want_to_be_toggled_soooo_badly, true);
omg_i_want_to_be_toggled_soooo_badly.toggle();
assert_eq!(omg_i_want_to_be_toggled_soooo_badly, false);
let i_dont_want_to_be_toggled = false;
// That's okay.

Enterprise license

This crate supports a professional re-export of the trait, BoolToggleExt. It is only available when compiling with --cfg enterprise_license and obtaining an enterprise license. For license inquiries, send mail to /dev/null.

MSRV

The minimum supported Rust version of this crate is 1.1000.0. Lower versions might compile but are not supported.