Enum icu_datetime::fieldset::dynamic::TimeFieldSet
source · #[non_exhaustive]pub enum TimeFieldSet {
T(T),
}
Expand description
An enumeration over all possible time field sets.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl TimeFieldSet
impl TimeFieldSet
sourcepub const ALL_DATA_MARKER_ATTRIBUTES: &'static [&'static DataMarkerAttributes] = _
pub const ALL_DATA_MARKER_ATTRIBUTES: &'static [&'static DataMarkerAttributes] = _
All attributes associated with this enum.
§Encoding Details
The string is based roughly on the UTS 35 symbol table with the following exceptions:
- Lowercase letters are chosen where there is no ambiguity:
E
becomese
- Capitals are replaced with their lowercase and a number 0:
M
becomesm0
- A single symbol is included for each component: length doesn’t matter
- Time fields are encoded with their hour field only:
j
,h
, orh0
§Examples
use icu::datetime::fieldset::dynamic::TimeFieldSet as FS;
use icu_provider::DataMarkerAttributes;
assert!(FS::ALL_DATA_MARKER_ATTRIBUTES.contains(
&DataMarkerAttributes::from_str_or_panic("j")
));
source§impl TimeFieldSet
impl TimeFieldSet
sourcepub fn z(self) -> Combo<Self, Zs>
pub fn z(self) -> Combo<Self, Zs>
Associates this field set with a specific non-location format time zone, as in “Pacific Daylight Time”.
sourcepub fn o(self) -> Combo<Self, O>
pub fn o(self) -> Combo<Self, O>
Associates this field set with an offset format time zone, as in “GMT−8”.
Trait Implementations§
source§impl Clone for TimeFieldSet
impl Clone for TimeFieldSet
source§fn clone(&self) -> TimeFieldSet
fn clone(&self) -> TimeFieldSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl DateTimeMarkers for TimeFieldSet
impl DateTimeMarkers for TimeFieldSet
source§type D = NeoNeverMarker
type D = NeoNeverMarker
Associated types for date formatting. Read more
source§type T = TimeFieldSet
type T = TimeFieldSet
Associated types for time formatting. Read more
source§type Z = NeoNeverMarker
type Z = NeoNeverMarker
Associated types for time zone formatting. Read more
source§type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>
type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>
Marker for loading the date/time glue pattern.
source§impl Debug for TimeFieldSet
impl Debug for TimeFieldSet
source§impl GetField<CompositeFieldSet> for TimeFieldSet
impl GetField<CompositeFieldSet> for TimeFieldSet
source§fn get_field(&self) -> CompositeFieldSet
fn get_field(&self) -> CompositeFieldSet
Returns the value of this trait’s field
T
.source§impl PartialEq for TimeFieldSet
impl PartialEq for TimeFieldSet
source§impl TimeMarkers for TimeFieldSet
impl TimeMarkers for TimeFieldSet
source§type DayPeriodNamesV1Marker = DayPeriodNamesV1Marker
type DayPeriodNamesV1Marker = DayPeriodNamesV1Marker
Marker for loading day period names.
source§type TimeSkeletonPatternsV1Marker = TimeNeoSkeletonPatternsV1Marker
type TimeSkeletonPatternsV1Marker = TimeNeoSkeletonPatternsV1Marker
Marker for loading time skeleton patterns.
source§type MinuteInput = IsoMinute
type MinuteInput = IsoMinute
Marker for resolving the day-of-week input field.
source§type SecondInput = IsoSecond
type SecondInput = IsoSecond
Marker for resolving the day-of-year input field.
source§type NanoSecondInput = NanoSecond
type NanoSecondInput = NanoSecond
Marker for resolving the any-calendar-kind input field.
impl Copy for TimeFieldSet
impl Eq for TimeFieldSet
impl StructuralPartialEq for TimeFieldSet
impl UnstableSealed for TimeFieldSet
Auto Trait Implementations§
impl Freeze for TimeFieldSet
impl RefUnwindSafe for TimeFieldSet
impl Send for TimeFieldSet
impl Sync for TimeFieldSet
impl Unpin for TimeFieldSet
impl UnwindSafe for TimeFieldSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more