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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720
//! # Typeables: Rust crate of type aliases and struct tuples
//!
//! Typeables is a Rust crate of semantic types, such as unit types (e.g. metre
//! for length, second for time), content types (e.g. email address, phone
//! number), locale types (e.g. "en" for English, "zh" for Chinese), etc.
//!
//! * scientific unit
//! * [ampere](ampere)
//! * [becquerel](becquerel)
//! * [candela](candela)
//! * [degree_celcius](degree_celcius)
//! * [farad](farad)
//! * [gram](gram)
//! * [gray](gray)
//! * [hertz](hertz)
//! * [henry](henry)
//! * [joule](joule)
//! * [katal](katal)
//! * [kelvin](kelvin)
//! * [kilogram](kilogram)
//! * [litre](litre)
//! * [lumen](lumen)
//! * [lux](lux)
//! * [metre](metre)
//! * [metre^2](metre_2)
//! * [metre^3](metre_3)
//! * [metre_per_second](metre_per_second)
//! * [mole](mole)
//! * [ohm](ohm)
//! * [pascal](pascal)
//! * [radian](radian)
//! * [siemens](siemens)
//! * [sievert](sievert)
//! * [steradian](steradian)
//! * [tesla](tesla)
//! * [volt](volt)
//! * [watt](watt)
//! * [weber](weber)
//! * time unit
//! * [year](year)
//! * [month](month)
//! * [week](week)
//! * [day](day)
//! * [hour](hour)
//! * [minute](minute)
//! * [second](second)
//! * time period
//! * [year_as_common_era](year_as_common_era)
//! * [month_of_year](month_of_year)
//! * [week_of_year](week_of_year)
//! * [day_of_year](day_of_year)
//! * [day_of_month](day_of_month)
//! * [day_of_week](day_of_week)
//! * [hour_of_day](hour_of_day)
//! * [minute_of_hour](minute_of_hour)
//! * [second_of_minute](second_of_minute)
//! * currency
//! * [currency_name](currency)
//! * [currency_symbol](currency)
//! * email address
//! * [email_address](email_address)
//! * [email_address_addr](email_address_addr)
//! * [email_address_name](email_address_name)
//! * geolocation
//! * [latitude](latitude)
//! * [longitude](longitude)
//! * [altitude](altitude)
//! * [elevation](elevation)
//! * [open_location_code](open_location_code)
//! * [what_free_words_code](what_free_words_code)
//! * interval
//! * [unit_interval](unit_interval)
//! * [dual_interval](unit_interval)
//! * locale
//! * [locale_code](locale_code)
//! * [locale_language_code](locale_language_code)
//! * [locale_country_code](locale_country_code)
//! * [locale_region_code](locale_region_code)
//! * [locale_script_code](locale_script_code)
//! * [locale_variant_code](locale_variant_code)
//! * localization
//! * [decimal_separator](decimal_separator)
//! * [grouping_separator](grouping_separator)
//! * [quotation_start_delimiter](quotation_start_delimiter)
//! * [quotation_stop_delimiter](quotation_stop_delimiter)
//! * media type
//! * [media_type_code](media_type)
//! * [media_type_supertype](media_type)
//! * [media_type_subtype](media_type)
//! * [media_type_suffix](media_type)
//! * [media_type_parameter](media_type)
//! * [media_type_tree](media_type)
//! * phone e164
//! * [phone_e164_text](phone)
//! * [phone_e164_country_code](phone_e164_country_code)
//! * [phone_e164_national_destination_code](phone_e164_national_destination_code)
//! * [phone_e164_subscriber_number](phone_e164_subscriber_number)
//! * [phone_e164_group_identification_code](phone_e164_group_identification_code)
//! * [phone_e164_trial_identification_code](phone_e164_trial_identification_code)
//! * grammar
//! * [adjective](adjective)
//! * [adverb](adverb)
//! * [noun](noun)
//! * [pronoun](pronoun)
//! * [verb](verb)
//! * text formats
//! * [html_text](html_text)
//! * [json_text](json_text)
//! * [markdown_text](markdown_text)
//! * [yaml_text](yaml_text)
//! * [xml_text](xml_text)
//! * content
//! * [global_location_number](global_location_number)
//! * [international_standard_of_industrial_classification_revision_4_code](international_standard_of_industrial_classification_revision_4_code)
//! * [international_standard_of_industrial_classification_revision_4_name](international_standard_of_industrial_classification_revision_4_name)
//! * [legal_entity_identifier_code](legal_entity_identifier_code)
//! * [value_added_tax_identification_number](value_added_tax_identification_number)
//! * date time
//! * [date_time](date_time)
//! * [date](date)
//! * [time](time)
//! * [time_offset](time_offset)
//! * [time_zone](time_zone)
//!
//!
//! ## Introduction
//!
//! Typeables is based on the Rust pattern of "New Type". This uses a Rust
//! struct tuple as a wrapper of another type (or types), in order to provide
//! encapsulation.
//!
//! Example:
//!
//! ```rust
//! pub struct SecondAsF64(pub f64); // This is a "New Type" struct tuple.
//!
//! let s = SecondAsF64(1.0); // One second of time as a floating-point 64-bit.
//! ```
//!
//! Typeables helps you write clearer code and stronger code, because you can be
//! more-precise about your variable types and your function inputs and outputs.
//!
//! Example:
//!
//! ```rust
//! use typeables::metre::MetreAsStructF64;
//! use typeables::second::SecondAsStructF64;
//!
//! fn speed(
//! m: MetreAsStructF64,
//! s: SecondAsStructF64
//! ) {
//! println!("Speed is {}", m.0 / s.0)
//! }
//!
//! fn main() {
//! let m = MetreAsStructF64(2.0);
//! let s = SecondAsStructF64(3.0);
//! speed(m, s)
//! }
//! ```
//!
//! Typeables helps you create better domain driven design, stronger
//! compile-time checking, and crisper run-time diagnostics.
//!
//!
//! ### What is a struct tuple?
//!
//! A struct tuple is akin to a wrapper for another type.
//!
//! A struct tuple can make your code safer because it provides encapsulation.
//!
//! Example:
//!
//! ```rust
//! pub struct Foo(pub f64);
//!
//! let x = Foo(1.0);
//! ```
//!
//!
//! ### What is a type alias?
//!
//! A type alias is akin to a nickname for another type.
//!
//! A type alias can make your code clearer because it expresses your intent.
//!
//! Example:
//!
//! ```rust
//! pub type Foo = f64;
//!
//! let x: Foo = 1.0;
//! ```
//!
//!
//! ### How does Typeables provide a struct tuple and type alias?
//!
//! Typeables provides concepts with a struct tuple and also with a type alias.
//!
//! Example:
//!
//! ```rust
//! pub struct SecondAsStructF64(f64);
//!
//! pub type SecondAsTypeF64 = f64;
//! ```
//!
//!
//! ### How do I refactor code to use Typeables?
//!
//! Typeables helps you refactor from weaker-type code to stronger-type code.
//!
//! Step 1. Start with typical code.
//!
//! ```rust
//! fn speed(
//! m: f64,
//! s: f64
//! ) {
//! println!("The speed is {}", m / s)
//! }
//! ```
//!
//! Step 2. Refactor to a Typeables type alias. This is annotation, because you
//! clarify the types that the function expects.
//!
//! ```rust
//! # use typeables::{metre::*, second::*};
//! fn speed(
//! m: MetreAsTypeF64,
//! s: SecondAsTypeF64
//! ) {
//! println!("The speed is {}", m / s)
//! }
//! ```
//!
//! Step 3. Refactor to a Typealias struct tuple. This is encapsulation, because
//! you wrap the value in a struct.
//!
//! ```rust
//! # use typeables::{metre::*, second::*};
//! fn speed(
//! m: MetreAsStructF64,
//! s: SecondAsStructF64
//! ) {
//! println!("The speed is {}", m.0 / s.0)
//! }
//! ```
//!
//!
//! ## Semantics
//!
//!
//! ### Why use semantic names?
//!
//! When you use semantic names, such as clear descriptions and purposeful
//! naming conventions, then you help developers understand your code, and help
//! compilers provide reliability, and help tools provide inspectability.
//!
//! Suppose your code has this function:
//!
//! ```rust
//! fn f(year: i16, month: i16) {
//! println!("Year {} Month {}", year, month)
//! }
//! ```
//!
//! A developer can use your code like this:
//!
//! ```rust
//! # use typeables::{year_as_common_era::*, month_of_year::*};
//! # fn f(year: i16, month: i16) {
//! # println!("Year {} Month {}", year, month)
//! # }
//! let year = 2022;
//! let month = 12;
//!
//! f(year, month); // right
//! // f(month, year); // wrong, yet will compile and be a bug
//! ```
//!
//! You can make your code clearer by adding a type alias:
//!
//! ```rust
//! # use typeables::{year_as_common_era::*, month_of_year::*};
//! fn f(year: YearAsCommonEraAsTypeI16, month: MonthOfYearAsTypeI16) {
//! println!("Year {} Month {}", year, month)
//! }
//! ```
//!
//! You can make your code stronger by using a struct tuple:
//!
//! ```rust
//! # use typeables::{year_as_common_era::*, month_of_year::*};
//! fn f(year: YearAsCommonEraAsStructI16, month: MonthOfYearAsStructI16) {
//! println!("Year {} Month {}", year.0, month.0)
//! }
//! ```
//!
//! A developer can use your code like this:
//!
//! ```rust
//! # use typeables::{year_as_common_era::*, month_of_year::*};
//! # fn f(year: YearAsCommonEraAsStructI16, month: MonthOfYearAsStructI16) {
//! # println!("Year {} Month {}", year.0, month.0)
//! # }
//! let year = YearAsCommonEraAsStructI16(2022);
//! let month = MonthOfYearAsStructI16(12);
//!
//! f(year, month); // right
//! // f(month, year); // wrong and won't compile
//! ```
//!
//!
//! ### Why use semantic names, representation names, unit names, and implementation names?
//!
//! Suppose you're writing an application for aircraft.
//!
//! You want to keep track of:
//!
//! * Aircraft altitudes.
//!
//! * Representation as "Above Ground Level (AGL)" such as the height of the
//! aircraft above the runway during takeoff or landing, or as "Mean Sea
//! Level (MSL)" such as the worldwide height of the aircraft during
//! cruising flight.
//!
//! * Unit of measurement as "Metre" which is the international system, or as
//! "Foot" which is the United States system.
//!
//! * The implemention as a signed integer 16-bit, because altitude can be
//! negative in some rare areas such as Death Valley California, and your
//! application may need to integrate with legacy code that requires signed
//! integer 16-bit numbers.
//!
//! You can use this naming convention:
//!
//! * Semantic name "Altitude"
//!
//! * As representation name "Above Ground Level" or "Mean Sea Level"
//!
//! * As unit name "Metre" or "Foot"
//!
//! * As primitive name "I16".
//!
//! The code looks like this:
//!
//! ```rust
//! # use typeables::altitude::*;
//! pub struct AltitudeAsAboveGroundLevelAsMetreAsStructI16(pub i16);
//! pub struct AltitudeAsAboveGroundLevelAsFootAsStructI16(pub i16);
//! pub struct AltitudeAsMeanSeaLevelAsMetreAsStructI16(pub i16);
//! pub struct AltitudeAsMeanSeaLevelAsFootAsStructI16(pub i16);
//! ```
//!
//! Suppose your app also needs to keep track of:
//!
//! * Airport elevations.
//!
//! * The representation as "Above Ground Level (AGL)" such as the height of
//! an airport building above the airport runway, or as "Mean Sea Level
//! (MSG)" such as the worldwide height of the airporse runway.
//!
//! * Etc.
//!
//! The code looks like this:
//!
//! ```rust
//! # use typeables::elevation::*;
//! pub struct ElevationAsAboveGroundLevelAsMetreAsStructI16(pub i16);
//! pub struct ElevationAsAboveGroundLevelAsFootAsStructI16(pub i16);
//! pub struct ElevationAsMeanSeaLevelAsMetreAsStructI16(pub i16);
//! pub struct ElevationAsMeanSeaLevelAsFootAsStructI16(pub i16);
//! ```
//!
//! The naming convention is crystal clear and fully descriptive:
//!
//! * Developers can understand your code better, and how to use it.
//!
//! * Compilers can provide stronger compile-time guarantees.
//!
//! * Debuggers can provide crisper run-time diagnostics.
//!
//! * Editors can provide better auto-complete and auto-suggest.
//!
//!
//! ### Use words rather than abbreviations
//!
//! Examples of semantic names:
//!
//! * Use "Latitude" not "Lat".
//!
//! * Use "Longitude" not "Lon", "Lng", "Long".
//!
//! Examples of representation names:
//!
//! * Use "Decimal Degree" not "DD"
//!
//! * Use "Degree Minute Second" not "DMS".
//!
//! Examples of unit names:
//!
//! * Use "Metre" not "M".
//!
//! * Use "Second" not "S".
//!
//! Examples of implementation names:
//!
//! * Use "TypeString" not "TS"
//!
//! * Use "StructString" not "SS".
//!
//!
//! ### Prefer singular over plural
//!
//! Examples of representation names:
//!
//! * Use "Decimal Degree" not "Decimal Degrees"
//!
//! * Use "Degree Minute Second" not "Degrees Minutes Seconds"
//!
//! Examples of unit names:
//!
//! * Use "Metre" not "Metres".
//!
//! * Use "Second" not "Seconds"
//!
//!
//! ### Prefer StemOfScope over ScopeStem
//!
//! Example:
//!
//! * Use "DayOfWeek" not "WeekDay"
//!
//! * Use "DayOfMonth" not "MonthDay"
//!
//!
//! ### Naming conventions
//!
//! Naming convention for struct tuples:
//!
//! ```rust
//! pub struct FooAsStructI8(pub i8);
//! pub struct FooAsStructI16(pub i16);
//! pub struct FooAsStructI32(pub i32);
//! pub struct FooAsStructI64(pub i64);
//! pub struct FooAsStructI128(pub i128);
//! pub struct FooAsStructISize(pub isize);
//!
//! pub struct FooAsStructU8(pub u8);
//! pub struct FooAsStructU16(pub u16);
//! pub struct FooAsStructU32(pub u32);
//! pub struct FooAsStructU64(pub u64);
//! pub struct FooAsStructU128(pub u128);
//! pub struct FooAsStructUSize(pub usize);
//!
//! pub struct FooAsStructF32(pub f32); pub struct FooAsStructF64(pub f64);
//!
//! pub struct FooAsStructStr(&'static String); pub struct FooAsStructString(pub
//! String);
//! ```
//!
//! Naming convention for type aliass:
//!
//! ```rust
//! pub type FooAsTypeI8 = i8;
//! pub type FooAsTypeI16 = i16;
//! pub type FooAsTypeI32 = i32;
//! pub type FooAsTypeI64 = i64;
//! pub type FooAsTypeI128 = i128;
//! pub type FooAsTypeISize = isize;
//!
//! pub type FooAsTypeU8 = u8;
//! pub type FooAsTypeU16 = u16;
//! pub type FooAsTypeU32 = u32;
//! pub type FooAsTypeU64 = u64;
//! pub type FooAsTypeU128 = u128;
//! pub type FooAsTypeUSize = usize;
//!
//! pub type FooAsTypeF32 = f32;
//! pub type FooAsTypeF64 = f64;
//!
//! pub type FooAsTypeStr = str;
//! pub type FooAsTypeString = String;
//! ```
//!
//!
//! ## Comparisons
//!
//! We recommend looking at the Rust crate `uom` (unit of measure) and the Rust
//! book examples of the `newtype` pattern.
//!
//!
//! ### Comparison with uom
//!
//! Broadly speaking:
//!
//! * uom favors high-level work, such as automatic normalizations and
//! conversions.
//!
//! * Typeables favors low-level work, such as exact representations and
//! primitives.
//!
//! Quantities v. units v. primitives:
//!
//! * uom deliberately favors working with conceptual quantities (length, mass,
//! time, …) rather than measurement units (metre, gram, second, …) and
//! implementation primitives (pub i8, u16, f32, …).
//!
//! * Typeables favors working with explicit measurement units and explicit
//! implementation primitives. When you want the concept of "length" and unit
//! "metre" and primitive "f32" then you write "LengthAsMetreAsTypeF32".
//!
//! Normalization v. exactness:
//!
//! * uom deliberately normalizes values to their base units, such as
//! normalizing 1 gram to 0.001 kilogram, and deliberately trades away
//! representation capabilities (due to inexact conversions) and precision
//! capabilties (due to bit limits).
//!
//! * Typeables favors exactness, never normaliziation. When you want the
//! concept of "mass" and unit "gram" and primitive "u128" for 128-bit
//! unsigned integer precision, then you write "GramAsTypeI128".
//!
//!
//! ### Comparison with Rust "New Type Idiom" a.k.a. "New Type Pattern"
//!
//! Broadly speaking:
//!
//! * The Rust "New Type Idiom" a.k.a. "New Type Pattern" is exactly what
//! Typeables is doing with struct tuples. We like this idiom very much.
//!
//! * Typeables additionally provides type aliass. In practice we find this is
//! an important way to help professional developers with larger codebases,
//! because the developers can phase in the type aliass as hints to developers
//! and to tools, then later on can phase in the struct tuples.
//!
//! Roll your own versus using Typeables crate:
//!
//! * You can certainly roll your own new type pattern, and you can use your own
//! type names, or even use the Typeables type names.
//!
//! * The Typeables crate is helpful because it provides a bunch of definitions,
//! so you can use the crate, then get all the benefits of the types, plus
//! your tools can use the crate information, such as for editor tool
//! autocomplete and autosuggest.
//!
//!
//! ## Implementation
//!
//! The type aliases are all for Rust primitives and standards such as strings
//! (using `str` and `String`) and numbers (using `i64`, `u64`, `f64`, et al.).
//!
//!
//! ### Overhead
//!
//! Typeables has zero or near-zero runtime overhead:
//!
//! * A type alias is zero runtime overhead because the type alias is replaced
//! at compile time.
//!
//! * A struct tuple is near-zero runtime overhead because the struct tuple is a
//! wrapper with a field.
//!
//!
//! ### Typing
//!
//! Typeables is deliberately verbose.
//!
//! * We use editors with autocomplete and autosuggest, so typing is easy and
//! fast.
//!
//! * We like long names for low-level clarity.
//!
//! * Typeables defines many type aliass and struct tuples. Typically these are
//! fast during development because they're simple. Typically these are even
//! faster during production because the Rust compiler can optimized these and
//! also eliminate any that are not needed.
//!
//!
//! ### Macros
//!
//! The Typeables source code does not use macros.
//!
//! * We like macros in general.
//!
//! * Yet we discovered in practice that macros seem to interfere with some of
//! our tooling.
//!
//! * For example, macros do not seem to work with some editors that inspect the
//! Typeables crate in order to do autocomplete and autosuggest.
//!
//!
//! ### Further reading
//!
//! See: <https://www.datafix.com.au/BASHing/2020-02-12.html>
// SI Unit System
pub mod ampere;
pub mod becquerel;
pub mod candela;
pub mod degree_celcius;
pub mod farad;
pub mod gram;
pub mod gray;
pub mod hertz;
pub mod henry;
pub mod joule;
pub mod katal;
pub mod kelvin;
pub mod kilogram;
pub mod litre;
pub mod lumen;
pub mod lux;
pub mod metre;
pub mod metre_2;
pub mod metre_3;
pub mod metre_per_second;
pub mod mole;
pub mod ohm;
pub mod pascal;
pub mod radian;
pub mod siemens;
pub mod sievert;
pub mod steradian;
pub mod tesla;
pub mod volt;
pub mod watt;
pub mod weber;
// Time unit
pub mod year;
pub mod month;
pub mod week;
pub mod day;
pub mod hour;
pub mod minute;
pub mod second;
// Time period
pub mod year_as_common_era;
pub mod month_of_year;
pub mod week_of_year;
pub mod week_of_month;
pub mod day_of_year;
pub mod day_of_month;
pub mod day_of_week;
pub mod hour_of_day;
pub mod minute_of_hour;
pub mod second_of_minute;
// Misc
pub mod currency;
pub mod global_location_number;
pub mod international_standard_of_industrial_classification_revision_4_code;
pub mod international_standard_of_industrial_classification_revision_4_name;
pub mod legal_entity_identifier_code;
pub mod media_type;
pub mod value_added_tax_identification_number;
// Locale
pub mod locale_code;
pub mod locale_language_code;
pub mod locale_country_code;
pub mod locale_region_code;
pub mod locale_script_code;
pub mod locale_variant_code;
// Email
pub mod email_address;
pub mod email_address_addr;
pub mod email_address_name;
// Geolocation
pub mod latitude;
pub mod longitude;
pub mod altitude;
pub mod elevation;
pub mod open_location_code;
pub mod what_free_words_code;
// Interval
pub mod unit_interval;
pub mod dual_interval;
// Localization
pub mod decimal_separator;
pub mod grouping_separator;
pub mod quotation_start_delimiter;
pub mod quotation_stop_delimiter;
// Phone
pub mod phone_e164_text;
pub mod phone_e164_country_code;
pub mod phone_e164_national_destination_code;
pub mod phone_e164_subscriber_number;
pub mod phone_e164_group_identification_code;
pub mod phone_e164_trial_identification_code;
// Text formats
pub mod html_text;
pub mod json_text;
pub mod markdown_text;
pub mod yaml_text;
pub mod xml_text;
// Date & Time
pub mod date_time;
pub mod date;
pub mod time;
pub mod time_offset;
pub mod time_zone;
// Grammar
pub mod adjective;
pub mod adverb;
pub mod noun;
pub mod pronoun;
pub mod verb;