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