time/format_description/
mod.rs1mod borrowed_format_item;
11mod component;
12pub(crate) mod format_description_v3;
13pub mod modifier;
14#[cfg(feature = "alloc")]
15mod owned_format_item;
16#[cfg(feature = "alloc")]
17mod parse;
18
19pub mod well_known {
21 pub mod iso8601;
22 mod rfc2822;
23 mod rfc3339;
24
25 #[doc(inline)]
26 pub use iso8601::Iso8601;
27 pub use rfc2822::Rfc2822;
28 pub use rfc3339::Rfc3339;
29}
30
31#[doc(hidden)]
37pub mod __private {
38 pub use super::format_description_v3::{Component, FormatDescriptionV3Inner};
39}
40
41pub use borrowed_format_item::BorrowedFormatItem;
42#[doc(hidden)]
43#[deprecated(since = "0.3.37", note = "use `BorrowedFormatItem` for clarity")]
44pub use borrowed_format_item::BorrowedFormatItem as FormatItem;
45#[cfg(feature = "alloc")]
46pub use owned_format_item::OwnedFormatItem;
47
48pub use self::component::Component;
49pub use self::format_description_v3::FormatDescriptionV3;
50#[cfg(feature = "alloc")]
51#[expect(deprecated, reason = "backwards compatibility")]
52pub use self::parse::parse;
53#[cfg(feature = "alloc")]
54pub use self::parse::{parse_borrowed, parse_owned, parse_strftime_borrowed, parse_strftime_owned};
55
56pub type StaticFormatDescription = &'static [BorrowedFormatItem<'static>];
58
59#[derive(Debug, Clone, Copy, PartialEq, Eq)]
61pub(crate) enum Period {
62 #[allow(clippy::missing_docs_in_private_items)]
63 Am,
64 #[allow(clippy::missing_docs_in_private_items)]
65 Pm,
66}