Struct icu_datetime::neo_marker::DateTimeCombo
source · pub struct DateTimeCombo<D, T, Z> {
pub length: NeoSkeletonLength,
pub alignment: Option<Alignment>,
pub year_style: Option<YearStyle>,
pub fractional_second_digits: Option<FractionalSecondDigits>,
/* private fields */
}
Expand description
A struct that supports formatting both a date and a time.
It should be composed from types implementing HasConstDateComponents
and HasConstTimeComponents
.
Fields§
§length: NeoSkeletonLength
Desired formatting length.
alignment: Option<Alignment>
Alignment option.
year_style: Option<YearStyle>
Era display option.
fractional_second_digits: Option<FractionalSecondDigits>
Fractional second digits option.
Implementations§
source§impl<D, T, Z> DateTimeCombo<D, T, Z>
impl<D, T, Z> DateTimeCombo<D, T, Z>
sourcepub fn with_length(length: NeoSkeletonLength) -> Self
pub fn with_length(length: NeoSkeletonLength) -> Self
Creates a date/time/zone skeleton with the given formatting length.
Trait Implementations§
source§impl<D> DateTimeMarkers for DateTimeCombo<D, NeoNeverMarker, NeoNeverMarker>where
D: DateTimeMarkers,
impl<D> DateTimeMarkers for DateTimeCombo<D, NeoNeverMarker, NeoNeverMarker>where
D: DateTimeMarkers,
source§type T = NeoNeverMarker
type T = NeoNeverMarker
Associated types for time formatting. Read more
source§type Z = NeoNeverMarker
type Z = NeoNeverMarker
Associated types for time zone formatting. Read more
source§type LengthOption = NeoSkeletonLength
type LengthOption = NeoSkeletonLength
Type of the length option in the constructor.
source§type AlignmentOption = <D as DateTimeMarkers>::AlignmentOption
type AlignmentOption = <D as DateTimeMarkers>::AlignmentOption
Type of the alignment option in the constructor.
source§type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption
type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption
Type of the year style option in the constructor.
source§type FractionalSecondDigitsOption = ()
type FractionalSecondDigitsOption = ()
Type of the fractional seconds display option in the constructor.
source§type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>
type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>
Marker for loading the date/time glue pattern.
source§impl<D, T> DateTimeMarkers for DateTimeCombo<D, T, NeoNeverMarker>where
D: DateTimeMarkers,
T: DateTimeMarkers,
impl<D, T> DateTimeMarkers for DateTimeCombo<D, T, NeoNeverMarker>where
D: DateTimeMarkers,
T: DateTimeMarkers,
source§type Z = NeoNeverMarker
type Z = NeoNeverMarker
Associated types for time zone formatting. Read more
source§type LengthOption = NeoSkeletonLength
type LengthOption = NeoSkeletonLength
Type of the length option in the constructor.
source§type AlignmentOption = Option<Alignment>
type AlignmentOption = Option<Alignment>
Type of the alignment option in the constructor.
source§type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption
type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption
Type of the year style option in the constructor.
source§type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption
type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption
Type of the fractional seconds display option in the constructor.
source§type GluePatternV1Marker = GluePatternV1Marker
type GluePatternV1Marker = GluePatternV1Marker
Marker for loading the date/time glue pattern.
source§impl<D, T, Z> DateTimeMarkers for DateTimeCombo<D, T, Z>
impl<D, T, Z> DateTimeMarkers for DateTimeCombo<D, T, Z>
source§type LengthOption = NeoSkeletonLength
type LengthOption = NeoSkeletonLength
Type of the length option in the constructor.
source§type AlignmentOption = Option<Alignment>
type AlignmentOption = Option<Alignment>
Type of the alignment option in the constructor.
source§type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption
type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption
Type of the year style option in the constructor.
source§type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption
type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption
Type of the fractional seconds display option in the constructor.
source§type GluePatternV1Marker = GluePatternV1Marker
type GluePatternV1Marker = GluePatternV1Marker
Marker for loading the date/time glue pattern.
source§impl<Z> DateTimeMarkers for DateTimeCombo<NeoNeverMarker, NeoNeverMarker, Z>where
Z: DateTimeMarkers,
impl<Z> DateTimeMarkers for DateTimeCombo<NeoNeverMarker, NeoNeverMarker, Z>where
Z: DateTimeMarkers,
source§type D = NeoNeverMarker
type D = NeoNeverMarker
Associated types for date formatting. Read more
source§type T = NeoNeverMarker
type T = NeoNeverMarker
Associated types for time formatting. Read more
source§type LengthOption = <Z as DateTimeMarkers>::LengthOption
type LengthOption = <Z as DateTimeMarkers>::LengthOption
Type of the length option in the constructor.
source§type AlignmentOption = <Z as DateTimeMarkers>::AlignmentOption
type AlignmentOption = <Z as DateTimeMarkers>::AlignmentOption
Type of the alignment option in the constructor.
source§type YearStyleOption = ()
type YearStyleOption = ()
Type of the year style option in the constructor.
source§type FractionalSecondDigitsOption = ()
type FractionalSecondDigitsOption = ()
Type of the fractional seconds display option in the constructor.
source§type GluePatternV1Marker = GluePatternV1Marker
type GluePatternV1Marker = GluePatternV1Marker
Marker for loading the date/time glue pattern.
source§impl<T> DateTimeMarkers for DateTimeCombo<NeoNeverMarker, T, NeoNeverMarker>where
T: DateTimeMarkers,
impl<T> DateTimeMarkers for DateTimeCombo<NeoNeverMarker, T, NeoNeverMarker>where
T: DateTimeMarkers,
source§type D = NeoNeverMarker
type D = NeoNeverMarker
Associated types for date formatting. Read more
source§type Z = NeoNeverMarker
type Z = NeoNeverMarker
Associated types for time zone formatting. Read more
source§type LengthOption = NeoSkeletonLength
type LengthOption = NeoSkeletonLength
Type of the length option in the constructor.
source§type AlignmentOption = Option<Alignment>
type AlignmentOption = Option<Alignment>
Type of the alignment option in the constructor.
source§type YearStyleOption = ()
type YearStyleOption = ()
Type of the year style option in the constructor.
source§type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption
type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption
Type of the fractional seconds display option in the constructor.
source§type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>
type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>
Marker for loading the date/time glue pattern.
source§impl<D, T, Z> GetField<()> for DateTimeCombo<D, T, Z>
impl<D, T, Z> GetField<()> for DateTimeCombo<D, T, Z>
source§impl<D, T, Z> GetField<NeoSkeletonLength> for DateTimeCombo<D, T, Z>
impl<D, T, Z> GetField<NeoSkeletonLength> for DateTimeCombo<D, T, Z>
source§fn get_field(&self) -> NeoSkeletonLength
fn get_field(&self) -> NeoSkeletonLength
Returns the value of this trait’s field
T
.source§impl<D, T, Z> GetField<Option<FractionalSecondDigits>> for DateTimeCombo<D, T, Z>
impl<D, T, Z> GetField<Option<FractionalSecondDigits>> for DateTimeCombo<D, T, Z>
source§fn get_field(&self) -> Option<FractionalSecondDigits>
fn get_field(&self) -> Option<FractionalSecondDigits>
Returns the value of this trait’s field
T
.source§impl<D> HasConstComponents for DateTimeCombo<D, NeoNeverMarker, NeoNeverMarker>where
D: HasConstDateComponents,
impl<D> HasConstComponents for DateTimeCombo<D, NeoNeverMarker, NeoNeverMarker>where
D: HasConstDateComponents,
source§const COMPONENTS: NeoComponents = _
const COMPONENTS: NeoComponents = _
The associated components.
source§impl<D, T> HasConstComponents for DateTimeCombo<D, T, NeoNeverMarker>where
D: HasConstDateComponents,
T: HasConstTimeComponents,
impl<D, T> HasConstComponents for DateTimeCombo<D, T, NeoNeverMarker>where
D: HasConstDateComponents,
T: HasConstTimeComponents,
source§const COMPONENTS: NeoComponents = _
const COMPONENTS: NeoComponents = _
The associated components.
source§impl<D, T, Z> HasConstComponents for DateTimeCombo<D, T, Z>
impl<D, T, Z> HasConstComponents for DateTimeCombo<D, T, Z>
source§const COMPONENTS: NeoComponents = _
const COMPONENTS: NeoComponents = _
The associated components.
source§impl<Z> HasConstComponents for DateTimeCombo<NeoNeverMarker, NeoNeverMarker, Z>where
Z: HasConstZoneComponent,
impl<Z> HasConstComponents for DateTimeCombo<NeoNeverMarker, NeoNeverMarker, Z>where
Z: HasConstZoneComponent,
source§const COMPONENTS: NeoComponents = _
const COMPONENTS: NeoComponents = _
The associated components.
source§impl<T> HasConstComponents for DateTimeCombo<NeoNeverMarker, T, NeoNeverMarker>where
T: HasConstTimeComponents,
impl<T> HasConstComponents for DateTimeCombo<NeoNeverMarker, T, NeoNeverMarker>where
T: HasConstTimeComponents,
source§const COMPONENTS: NeoComponents = _
const COMPONENTS: NeoComponents = _
The associated components.
impl<D, T, Z> UnstableSealed for DateTimeCombo<D, T, Z>
Auto Trait Implementations§
impl<D, T, Z> Freeze for DateTimeCombo<D, T, Z>
impl<D, T, Z> RefUnwindSafe for DateTimeCombo<D, T, Z>
impl<D, T, Z> Send for DateTimeCombo<D, T, Z>
impl<D, T, Z> Sync for DateTimeCombo<D, T, Z>
impl<D, T, Z> Unpin for DateTimeCombo<D, T, Z>
impl<D, T, Z> UnwindSafe for DateTimeCombo<D, T, Z>
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> 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