is_positive 0.1.338

A simple Rust library to check if any non-ZST is positive
Documentation
  • Coverage
  • 50%
    2 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 91.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • LilDojd/is_positive
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LilDojd

🦀 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

:rotating_light: NEVER, and I mean NEVER use this in your code. The transmute relies on compiler bug and WILL produce UB :rotating_light:

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.