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
//! # YearAsCommonEra
//!
//!
//! ## YearAsCommonEra as number
//!
//! Examples:
//!
//! ```rust
//! # use typeables::year_as_common_era::*;
//! let x = YearAsCommonEraAsStructI16(2022);
//! ```
//!
//!
//! ## YearAsCommonEra as "YYYY" format
//!
//! Examples:
//!
//! ```rust
//! # use typeables::year_as_common_era::*;
//! let x = YearAsCommonEraAsYYYYAsStructStr("2022");
//! ```
//!
//! ## YearAsCommonEra as Name
//!
//! Example:
//!
//! ```rust
//! # use typeables::year_as_common_era::*;
//! let x = YearAsCommonEraAsNameAsStructStr("Year Two Thousand Twenty Two");
//! ```

//// YearAsCommonEra as number

pub struct YearAsCommonEraAsStructI8(pub i8);
pub struct YearAsCommonEraAsStructI16(pub i16);
pub struct YearAsCommonEraAsStructI32(pub i32);
pub struct YearAsCommonEraAsStructI64(pub i64);
pub struct YearAsCommonEraAsStructI128(pub i128);
pub struct YearAsCommonEraAsStructISize(pub isize);
pub struct YearAsCommonEraAsStructU8(pub u8);
pub struct YearAsCommonEraAsStructU16(pub u16);
pub struct YearAsCommonEraAsStructU32(pub u32);
pub struct YearAsCommonEraAsStructU64(pub u64);
pub struct YearAsCommonEraAsStructU128(pub u128);
pub struct YearAsCommonEraAsStructUSize(pub usize);
pub struct YearAsCommonEraAsStructF32(pub f32);
pub struct YearAsCommonEraAsStructF64(pub f64);

pub type YearAsCommonEraAsTypeI8 = i8;
pub type YearAsCommonEraAsTypeI16 = i16;
pub type YearAsCommonEraAsTypeI32 = i32;
pub type YearAsCommonEraAsTypeI64 = i64;
pub type YearAsCommonEraAsTypeI128 = i128;
pub type YearAsCommonEraAsTypeISize = isize;
pub type YearAsCommonEraAsTypeU8 = u8;
pub type YearAsCommonEraAsTypeU16 = u16;
pub type YearAsCommonEraAsTypeU32 = u32;
pub type YearAsCommonEraAsTypeU64 = u64;
pub type YearAsCommonEraAsTypeU128 = u128;
pub type YearAsCommonEraAsTypeUSize = usize;
pub type YearAsCommonEraAsTypeF32 = f32;
pub type YearAsCommonEraAsTypeF64 = f64;

//// YearAsCommonEra as "YYYY" format

pub struct YearAsCommonEraAsYYYYAsStructStr(pub &'static str);
pub struct YearAsCommonEraAsYYYYAsStructString(pub String);

pub type YearAsCommonEraAsYYYYAsTypeStr = str;
pub type YearAsCommonEraAsYYYYAsTypeString = String;

//// YearAsCommonEraAsName
pub struct YearAsCommonEraAsNameAsStructStr(pub &'static str);
pub struct YearAsCommonEraAsNameAsStructString(pub String);

pub type YearAsCommonEraAsNameAsTypeStr = str;
pub type YearAsCommonEraAsNameAsTypeString = String;