bad 0.1.1

Unlicensed bad ideas.
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented3 out of 3 items with examples
  • Size
  • Source code size: 16.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • nvzqz/bad-rs
    4 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nvzqz

bad-rs

A collection of (bad) ideas in Rust that you may or may not want to make use of in your next big project. Courtesy of Nikolai Vazquez.

Documentation

Installation

This crate is available on crates.io and can be used by adding the following to your project's Cargo.toml:

[dependencies]
bad = "0.1.1"

and optionally add this to your crate root (main.rs or lib.rs):

extern crate bad;

Usage

This crate exposes the following functionality:

  • StalinSort:

    A single pass, no-nonsense sorting algorithm with O(n) complexity that removes elements until the value is sorted.

  • Never:

    A type alias to ! (never) that works in places ! doesn't currently in stable Rust.

License

This project is released under either:

at your choosing.