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