2 releases
0.1.338 | Sep 10, 2024 |
---|---|
0.1.337 | Sep 10, 2024 |
#186 in Video
38KB
67 lines
๐ฆ Safe Is Positiveโข ๐ฆ
Welcome to the cutting-edge, totally-not-cursed Rust library that pushes the boundaries of what's possible (and probably what's sensible) in Rust programming!
Works only in nightly Rust due to use of generic_const_exprs
.
Checkout cve-rs to find out why this works.
Features
- ๐ Ultra-safe code (pinky promise)
- ๐ง AI-powered positivity detection
- ๐ฐ๏ธ Time-bending lifetime extensions
- ๐ Bee Movie script
Usage
Here's a quick example of how to use our groundbreaking is_positive
function:
use is_positive::is_positive;
fn main() {
let number = 42;
let mood = "ecstatic";
println!("Is 42 positive? {}", is_positive(number)); // true
println!("Is 'ecstatic' positive? {}", is_positive(mood)); // true
}
Warning
๐จ NEVER, and I mean NEVER use this in your code. The transmute
relies on compiler bug and WILL produce UB ๐จ
Features
transmute
: Transmute any type to any other type without unsafe code! What could go wrong?is_positive
: Determine if any type is positive using cutting-edge AI technology (results may vary).
Contributing
Contributions are welcome! Please note that all pull requests must be accompanied by a notarized statement declaring that you understand the cosmic consequences of your actions.
Acknowledgements
The Rust compiler for not completely giving up on us.