1 unstable release
Uses old Rust 2015
0.1.0 | Nov 10, 2017 |
---|
#1985 in Math
17KB
226 lines
sna
An implementation of Serial Number Arithmetic as defined by RFC 1982 for Rust.
Usage
Add this to your Cargo.toml
:
[dependencies]
sna = "0.1"
Add this to your crate:
extern crate sna;
Examples
use sna::SerialNumber;
let zero = SerialNumber(0u8);
let one = SerialNumber(1u8);
assert_eq!(0u8, one + 255u8);
assert!(zero > 255u8);