1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! # HourOfDay
//!
//!
//! ## HourOfDay As Number
//!
//! Example:
//!
//! ```rust
//! # use typeables::hour_of_day::*;
//! let x = HourOfDayAsStructI8(0); // First hour of the day
//! let x = HourOfDayAsStructI8(23); // Last hour of the day
//! ```
//!
//!
//! ## HourOfDay As "HH" format
//!
//! Examples:
//!
//! ```rust
//! # use typeables::hour_of_day::*;
//! let x = HourOfDayAsHHAsStructStr("00"); // First hour of the day
//! let x = HourOfDayAsHHAsStructStr("23"); // Last hour of the day
//! ```
//!
//! ## HourOfDay As Name
//!
//! Example:
//!
//! ```rust
//! # use typeables::hour_of_day::*;
//! let x = HourOfDayAsNameAsStructStr("First hour of the day");
//! let x = HourOfDayAsNameAsStructStr("Last hour of the day");
//! ```

//// HourOfDay

pub struct HourOfDayAsStructI8(pub i8);
pub struct HourOfDayAsStructI16(pub i16);
pub struct HourOfDayAsStructI32(pub i32);
pub struct HourOfDayAsStructI64(pub i64);
pub struct HourOfDayAsStructI128(pub i128);
pub struct HourOfDayAsStructISize(pub isize);
pub struct HourOfDayAsStructU8(pub u8);
pub struct HourOfDayAsStructU16(pub u16);
pub struct HourOfDayAsStructU32(pub u32);
pub struct HourOfDayAsStructU64(pub u64);
pub struct HourOfDayAsStructU128(pub u128);
pub struct HourOfDayAsStructUSize(pub usize);
pub struct HourOfDayAsStructF32(pub f32);
pub struct HourOfDayAsStructF64(pub f64);

pub type HourOfDayAsTypeI8 = i8;
pub type HourOfDayAsTypeI16 = i16;
pub type HourOfDayAsTypeI32 = i32;
pub type HourOfDayAsTypeI64 = i64;
pub type HourOfDayAsTypeI128 = i128;
pub type HourOfDayAsTypeISize = isize;
pub type HourOfDayAsTypeU8 = u8;
pub type HourOfDayAsTypeU16 = u16;
pub type HourOfDayAsTypeU32 = u32;
pub type HourOfDayAsTypeU64 = u64;
pub type HourOfDayAsTypeU128 = u128;
pub type HourOfDayAsTypeUSize = usize;
pub type HourOfDayAsTypeF32 = f32;
pub type HourOfDayAsTypeF64 = f64;

//// HourOfDayAsHH

pub struct HourOfDayAsHHAsStructStr(pub &'static str);
pub struct HourOfDayAsHHAsStructString(pub String);

pub type HourOfDayAsHHAsTypeStr = str;
pub type HourOfDayAsHHAsTypeString = String;

//// HourOfDayAsName

pub struct HourOfDayAsNameAsStructStr(pub &'static str);
pub struct HourOfDayAsNameAsStructString(pub String);

pub type HourOfDayAsNameAsTypeStr = str;
pub type HourOfDayAsNameAsTypeString = String;