wager
A library for the representation and manipulation of betting odds. Supports the parsing, converting, comparing, and calculating the payouts of various types of odds.
Basic usage
use ;
// Parse
let moneyline = "-200"..unwrap;
// Convert
let decimal = try_from.unwrap;
// Compare
let a = "+300"..unwrap;
let b = "3/1"..unwrap;
assert_eq!;
/// Calculate payout
assert_eq!;