newnit/area/imperial.rs
1//! British Imperial units of area
2//!
3//! This module contains predefined newtypes for units of area as defined in
4//! the British Imperial system. The base unit is the square meter.
5
6use super::Area;
7use crate::{Unit, make_unit};
8use newnit_derive::{Area, Unit};
9
10// Trivial squares of units of length
11make_unit!(SquareInch, 0.000_645_16, Area);
12make_unit!(SquareFoot, 0.092_903_04, Area);
13make_unit!(SquareYard, 0.836_127_36, Area);
14make_unit!(SquareChain, 404.685_642_24, Area);
15make_unit!(SquareFurlong, 40_468.564_224, Area);
16make_unit!(SquareMile, 2_589_988.110_34, Area);
17make_unit!(SquareLeague, 23_309_892.993_0, Area);
18
19// Non-trivial units
20make_unit!(Acre, 4_046.856_422_4, Area);