quick_sort_yq 0.1.5

A sample quick sort algorithm
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 109.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • netqyq

Quick Sort Algorithm

A simple, generic implementation of the quick sort algorithm in Rust.

Usage

1. Add as a Dependency

Add the following to your Cargo.toml:

[dependencies]
quick_sort_yq = "0.1.5"

Replace the version with the latest published version if needed.

2. Import and Use

use quick_sort_yq::quick_sort;

fn main() {
    let mut arr = [3, 6, 8, 10, 1, 2, 1, 80];
    println!("Before: {:?}", arr);
    quick_sort(&mut arr);
    println!("After:  {:?}", arr);
}

Features

  • Generic: Works with any type that implements Ord.
  • No dependencies.

License

MIT