Struct icu_datetime::neo_skeleton::NeoDateTimeSkeleton
source · pub struct NeoDateTimeSkeleton {
pub length: NeoSkeletonLength,
pub components: NeoDateTimeComponents,
pub alignment: Option<Alignment>,
pub era_display: Option<EraDisplay>,
pub fractional_second_digits: Option<FractionalSecondDigits>,
}
Expand description
A skeleton for formatting parts of a date and time (without time zone).
Fields§
§length: NeoSkeletonLength
Desired formatting length.
components: NeoDateTimeComponents
Date and time components of the skeleton.
alignment: Option<Alignment>
Alignment option.
era_display: Option<EraDisplay>
Era display option.
fractional_second_digits: Option<FractionalSecondDigits>
Fractional second digits option.
Implementations§
source§impl NeoDateTimeSkeleton
impl NeoDateTimeSkeleton
sourcepub fn for_length_and_components(
length: NeoSkeletonLength,
date: NeoDayComponents,
time: NeoTimeComponents,
) -> Self
pub fn for_length_and_components( length: NeoSkeletonLength, date: NeoDayComponents, time: NeoTimeComponents, ) -> Self
Creates a skeleton from its length and components.
Trait Implementations§
source§impl Clone for NeoDateTimeSkeleton
impl Clone for NeoDateTimeSkeleton
source§fn clone(&self) -> NeoDateTimeSkeleton
fn clone(&self) -> NeoDateTimeSkeleton
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 Debug for NeoDateTimeSkeleton
impl Debug for NeoDateTimeSkeleton
source§impl From<NeoDateTimeSkeleton> for NeoSkeleton
impl From<NeoDateTimeSkeleton> for NeoSkeleton
source§fn from(value: NeoDateTimeSkeleton) -> Self
fn from(value: NeoDateTimeSkeleton) -> Self
Converts to this type from the input type.
impl Copy for NeoDateTimeSkeleton
Auto Trait Implementations§
impl Freeze for NeoDateTimeSkeleton
impl RefUnwindSafe for NeoDateTimeSkeleton
impl Send for NeoDateTimeSkeleton
impl Sync for NeoDateTimeSkeleton
impl Unpin for NeoDateTimeSkeleton
impl UnwindSafe for NeoDateTimeSkeleton
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