dims_core 0.5.1

Core Utils for Generating Units and Systems
Documentation
use dims_core::unit_creation::*;

mod common;
use common::Length;

type Unit<'t> = UnitFormat<'t, Length>;
#[test]
fn test_unit_eq() {
    let same1 = Unit {
        offset: 0.0,
        ratio: 1.0,
        abbr: "m",
        singular: "metre",
        plural: "metres",
    };
    let same2 = Unit {
        offset: 0.0,
        ratio: 1.0,
        abbr: "m",
        singular: "meter",
        plural: "meters",
    };
    assert_eq!(same1, same2);
}