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>

source

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,

source§

type D = D

Associated types for date formatting. Read more
source§

type T = NeoNeverMarker

Associated types for time formatting. Read more
source§

type Z = NeoNeverMarker

Associated types for time zone formatting. Read more
source§

type LengthOption = NeoSkeletonLength

Type of the length option in the constructor.
source§

type AlignmentOption = <D as DateTimeMarkers>::AlignmentOption

Type of the alignment option in the constructor.
source§

type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption

Type of the year style option in the constructor.
source§

type FractionalSecondDigitsOption = ()

Type of the fractional seconds display option in the constructor.
source§

type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>

Marker for loading the date/time glue pattern.
source§

impl<D, T> DateTimeMarkers for DateTimeCombo<D, T, NeoNeverMarker>

source§

type D = D

Associated types for date formatting. Read more
source§

type T = T

Associated types for time formatting. Read more
source§

type Z = NeoNeverMarker

Associated types for time zone formatting. Read more
source§

type LengthOption = NeoSkeletonLength

Type of the length option in the constructor.
source§

type AlignmentOption = Option<Alignment>

Type of the alignment option in the constructor.
source§

type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption

Type of the year style option in the constructor.
source§

type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption

Type of the fractional seconds display option in the constructor.
source§

type GluePatternV1Marker = GluePatternV1Marker

Marker for loading the date/time glue pattern.
source§

impl<D, T, Z> DateTimeMarkers for DateTimeCombo<D, T, Z>

source§

type D = D

Associated types for date formatting. Read more
source§

type T = T

Associated types for time formatting. Read more
source§

type Z = Z

Associated types for time zone formatting. Read more
source§

type LengthOption = NeoSkeletonLength

Type of the length option in the constructor.
source§

type AlignmentOption = Option<Alignment>

Type of the alignment option in the constructor.
source§

type YearStyleOption = <D as DateTimeMarkers>::YearStyleOption

Type of the year style option in the constructor.
source§

type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption

Type of the fractional seconds display option in the constructor.
source§

type GluePatternV1Marker = GluePatternV1Marker

Marker for loading the date/time glue pattern.
source§

impl<Z> DateTimeMarkers for DateTimeCombo<NeoNeverMarker, NeoNeverMarker, Z>
where Z: DateTimeMarkers,

source§

type D = NeoNeverMarker

Associated types for date formatting. Read more
source§

type T = NeoNeverMarker

Associated types for time formatting. Read more
source§

type Z = Z

Associated types for time zone formatting. Read more
source§

type LengthOption = <Z as DateTimeMarkers>::LengthOption

Type of the length option in the constructor.
source§

type AlignmentOption = <Z as DateTimeMarkers>::AlignmentOption

Type of the alignment option in the constructor.
source§

type YearStyleOption = ()

Type of the year style option in the constructor.
source§

type FractionalSecondDigitsOption = ()

Type of the fractional seconds display option in the constructor.
source§

type GluePatternV1Marker = GluePatternV1Marker

Marker for loading the date/time glue pattern.
source§

impl<T> DateTimeMarkers for DateTimeCombo<NeoNeverMarker, T, NeoNeverMarker>
where T: DateTimeMarkers,

source§

type D = NeoNeverMarker

Associated types for date formatting. Read more
source§

type T = T

Associated types for time formatting. Read more
source§

type Z = NeoNeverMarker

Associated types for time zone formatting. Read more
source§

type LengthOption = NeoSkeletonLength

Type of the length option in the constructor.
source§

type AlignmentOption = Option<Alignment>

Type of the alignment option in the constructor.
source§

type YearStyleOption = ()

Type of the year style option in the constructor.
source§

type FractionalSecondDigitsOption = <T as DateTimeMarkers>::FractionalSecondDigitsOption

Type of the fractional seconds display option in the constructor.
source§

type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>

Marker for loading the date/time glue pattern.
source§

impl<D: Debug, T: Debug, Z: Debug> Debug for DateTimeCombo<D, T, Z>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<D, T, Z> GetField<()> for DateTimeCombo<D, T, Z>

source§

fn get_field(&self)

Returns the value of this trait’s field T.
source§

impl<D, T, Z> GetField<NeoSkeletonLength> for DateTimeCombo<D, T, Z>

source§

fn get_field(&self) -> NeoSkeletonLength

Returns the value of this trait’s field T.
source§

impl<D, T, Z> GetField<Option<Alignment>> for DateTimeCombo<D, T, Z>

source§

fn get_field(&self) -> Option<Alignment>

Returns the value of this trait’s field T.
source§

impl<D, T, Z> GetField<Option<FractionalSecondDigits>> for DateTimeCombo<D, T, Z>

source§

fn get_field(&self) -> Option<FractionalSecondDigits>

Returns the value of this trait’s field T.
source§

impl<D, T, Z> GetField<Option<YearStyle>> for DateTimeCombo<D, T, Z>

source§

fn get_field(&self) -> Option<YearStyle>

Returns the value of this trait’s field T.
source§

impl<D> HasConstComponents for DateTimeCombo<D, NeoNeverMarker, NeoNeverMarker>

source§

const COMPONENTS: NeoComponents = _

The associated components.
source§

impl<D, T> HasConstComponents for DateTimeCombo<D, T, NeoNeverMarker>

source§

const COMPONENTS: NeoComponents = _

The associated components.
source§

impl<D, T, Z> HasConstComponents for DateTimeCombo<D, T, Z>

source§

const COMPONENTS: NeoComponents = _

The associated components.
source§

impl<Z> HasConstComponents for DateTimeCombo<NeoNeverMarker, NeoNeverMarker, Z>

source§

const COMPONENTS: NeoComponents = _

The associated components.
source§

impl<T> HasConstComponents for DateTimeCombo<NeoNeverMarker, T, NeoNeverMarker>

source§

const COMPONENTS: NeoComponents = _

The associated components.
source§

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>
where D: Send, T: Send, Z: Send,

§

impl<D, T, Z> Sync for DateTimeCombo<D, T, Z>
where D: Sync, T: Sync, Z: Sync,

§

impl<D, T, Z> Unpin for DateTimeCombo<D, T, Z>
where D: Unpin, T: Unpin, Z: Unpin,

§

impl<D, T, Z> UnwindSafe for DateTimeCombo<D, T, Z>
where D: UnwindSafe, T: UnwindSafe, Z: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T
where T: Send + Sync,