newnit 0.1.2

A rich newtype library for units of quantity.
Documentation
//! US Customary units of mass.
//!
//! This module contains predefined newtypes for units of mass as defined in the
//! US Customary system. The base unit is the metric kilogram.
//!
//! Since the US Customary system is the same as the British Imperial system for
//! mass up to the pound (included), reexports from the `imperial` module are
//! used, where possible.

use super::Mass;
use crate::{Unit, make_unit};
use newnit_derive::{Mass, Unit};

// Troy units (precious metals)
pub use super::imperial::{Grain, Pennyweight, TroyOunce, TroyPound};

// Avoirdupois units

// long ton
pub type LongTon = super::imperial::LongTon;

// short ton
make_unit!(ShortTon, 907.184_74, Mass);

// long cwt
pub type LongHundredweight = super::imperial::Hundredweight;

// US cwt
make_unit!(ShortHundredweight, 45.359_237, Mass);

pub use super::imperial::{Ounce, Pound};

// dr
pub type Dram = super::imperial::Drachm;