typeables/
watt.rs

1//! # Watt
2//!
3//! Examples:
4//!
5//! ```rust
6//! # use typeables::watt::*;
7//! let x = WattAsStructF64(1.0);
8//! ```
9//!
10//! <https://wikipedia.org/wiki/Watt>
11//!
12//! The watt is a unit of power or radiant flux.
13//!
14//! It is a derived unit in the International System of Units (SI).
15//
16//! The SI unit symbol is W.
17//!
18//! The watt is defined as a derived unit of (in SI base units) 1 kg⋅m2⋅s−3 or 1
19//! joule per second. It is used to quantify the rate of energy transfer.
20//!
21//! The watt is named after James Watt (1736–1819).
22
23//// Watt
24
25pub struct WattAsStructI8(pub i8);
26pub struct WattAsStructI16(pub i16);
27pub struct WattAsStructI32(pub i32);
28pub struct WattAsStructI64(pub i64);
29pub struct WattAsStructI128(pub i128);
30pub struct WattAsStructISize(pub isize);
31pub struct WattAsStructU8(pub u8);
32pub struct WattAsStructU16(pub u16);
33pub struct WattAsStructU32(pub u32);
34pub struct WattAsStructU64(pub u64);
35pub struct WattAsStructU128(pub u128);
36pub struct WattAsStructUSize(pub usize);
37pub struct WattAsStructF32(pub f32);
38pub struct WattAsStructF64(pub f64);
39
40pub type WattAsTypeI8 = i8;
41pub type WattAsTypeI16 = i16;
42pub type WattAsTypeI32 = i32;
43pub type WattAsTypeI64 = i64;
44pub type WattAsTypeI128 = i128;
45pub type WattAsTypeISize = isize;
46pub type WattAsTypeU8 = u8;
47pub type WattAsTypeU16 = u16;
48pub type WattAsTypeU32 = u32;
49pub type WattAsTypeU64 = u64;
50pub type WattAsTypeU128 = u128;
51pub type WattAsTypeUSize = usize;
52pub type WattAsTypeF32 = f32;
53pub type WattAsTypeF64 = f64;