flexver-rs
A Rust implementation of FlexVer.
Getting It
You can either copy (and rename) lib.rs wholesale into your project, or retrieve it from crates.io like so in Cargo.toml
:
[]
= "0.1.2"
Usage
The crate provides both a compare
function and the FlexVer
struct. The FlexVer
struct implements Ord
, and thus supports all of the comparison operations.
; // Type signature
assert_eq!;
; // Type signature
assert!;
You can find additional examples in the tests section at the bottom of lib.rs.