typeables/
litre.rs

1//! # Litre
2//!
3//! Examples:
4//!
5//! ```rust
6//! # use typeables::litre::*;
7//! let x = LitreAsStructF64(1.0);
8//! ```
9//!
10//! <https://wikipedia.org/wiki/Litre>
11//!
12//! The litre is a metric unit of volume. It is equal to 1 cubic decimetre
13//! (dm3), 1000 cubic centimetre (cm3) or 0.001 cubic metre (m3). A cubic
14//! decimetre (or litre) occupies a volume of 10 cm × 10 cm × 10 cm (see figure)
15//! and is thus equal to one-thousandth of a cubic metre.
16//!
17//! The symbols are L, l, ℓ.
18//!
19//! Litre is the standard spelling in nearly all English-speaking areas.
20
21//// Litre
22
23pub struct LitreAsStructI8(pub i8);
24pub struct LitreAsStructI16(pub i16);
25pub struct LitreAsStructI32(pub i32);
26pub struct LitreAsStructI64(pub i64);
27pub struct LitreAsStructI128(pub i128);
28pub struct LitreAsStructISize(pub isize);
29pub struct LitreAsStructU8(pub u8);
30pub struct LitreAsStructU16(pub u16);
31pub struct LitreAsStructU32(pub u32);
32pub struct LitreAsStructU64(pub u64);
33pub struct LitreAsStructU128(pub u128);
34pub struct LitreAsStructUSize(pub usize);
35pub struct LitreAsStructF32(pub f32);
36pub struct LitreAsStructF64(pub f64);
37
38pub type LitreAsTypeI8 = i8;
39pub type LitreAsTypeI16 = i16;
40pub type LitreAsTypeI32 = i32;
41pub type LitreAsTypeI64 = i64;
42pub type LitreAsTypeI128 = i128;
43pub type LitreAsTypeISize = isize;
44pub type LitreAsTypeU8 = u8;
45pub type LitreAsTypeU16 = u16;
46pub type LitreAsTypeU32 = u32;
47pub type LitreAsTypeU64 = u64;
48pub type LitreAsTypeU128 = u128;
49pub type LitreAsTypeUSize = usize;
50pub type LitreAsTypeF32 = f32;
51pub type LitreAsTypeF64 = f64;