diff --git a/components/datetime/src/combo.rs b/components/datetime/src/combo.rs index d23f67ea7b6..9f92d8ecd73 100644 --- a/components/datetime/src/combo.rs +++ b/components/datetime/src/combo.rs @@ -9,6 +9,7 @@ use crate::{provider::neo::*, scaffold::*}; /// Struct for combining date/time fields with zone fields. /// /// This struct produces "composite field sets" as defined in UTS 35. +/// See [`fieldsets`](crate::fieldsets). /// /// # Examples /// diff --git a/components/datetime/src/dynamic.rs b/components/datetime/src/dynamic.rs index 7122071f518..b8e8fb313f6 100644 --- a/components/datetime/src/dynamic.rs +++ b/components/datetime/src/dynamic.rs @@ -2,7 +2,7 @@ // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). -//! Enumerations over field sets. +//! Enumerations over [field sets](crate::fieldsets). //! //! These enumerations can be used when the field set is not known at compile time. However, //! they may contribute negatively to the binary size of the formatters. @@ -62,6 +62,8 @@ use crate::{fields, fieldsets, Length}; use icu_provider::prelude::*; /// An enumeration over all possible date field sets. +/// +/// This is a dynamic field set. For more information, see [`enums`](crate::fieldsets::enums). #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[non_exhaustive] pub enum DateFieldSet { @@ -89,6 +91,8 @@ pub enum DateFieldSet { } /// An enumeration over all possible calendar period field sets. +/// +/// This is a dynamic field set. For more information, see [`enums`](crate::fieldsets::enums). #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[non_exhaustive] pub enum CalendarPeriodFieldSet { @@ -109,6 +113,8 @@ pub enum CalendarPeriodFieldSet { } /// An enumeration over all possible time field sets. +/// +/// This is a dynamic field set. For more information, see [`enums`](crate::fieldsets::enums). #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[non_exhaustive] pub enum TimeFieldSet { @@ -118,6 +124,8 @@ pub enum TimeFieldSet { /// An enumeration over all possible zone field sets. /// +/// This is a dynamic field set. For more information, see [`enums`](crate::fieldsets::enums). +/// /// Note: [`fieldsets::Zs`] and [`fieldsets::Vs`] are not included in this enum /// because they are data size optimizations only. /// @@ -167,6 +175,8 @@ pub enum ZoneStyle { } /// An enumeration over all possible date+time composite field sets. +/// +/// This is a dynamic field set. For more information, see [`enums`](crate::fieldsets::enums). #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[non_exhaustive] pub enum DateAndTimeFieldSet { @@ -200,6 +210,8 @@ pub enum DateAndTimeFieldSet { /// /// This enum is useful when formatting a type that does not contain a /// time zone or to avoid storing time zone data. +/// +/// This is a dynamic field set. For more information, see [`enums`](crate::fieldsets::enums). #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[non_exhaustive] pub enum CompositeDateTimeFieldSet { @@ -248,6 +260,8 @@ impl GetField for CompositeDateTimeFieldSet { } /// An enum supporting all possible field sets and options. +/// +/// This is a dynamic field set. For more information, see [`enums`](crate::fieldsets::enums). #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[non_exhaustive] pub enum CompositeFieldSet { diff --git a/components/datetime/src/fieldsets.rs b/components/datetime/src/fieldsets.rs index 1c08ba7642f..0040ceb472c 100644 --- a/components/datetime/src/fieldsets.rs +++ b/components/datetime/src/fieldsets.rs @@ -383,6 +383,8 @@ macro_rules! impl_date_or_calendar_period_marker { impl_marker_with_options!( #[doc = concat!("**“", $sample, "**” ⇒ ", $description)] /// + /// This is a field set marker. For more information, see [`fieldsets`](crate::fieldsets). + /// /// # Examples /// /// In [`DateTimeFormatter`](crate::neo::DateTimeFormatter):