Struct icu_datetime::neo_skeleton::NeoSkeleton
source · #[non_exhaustive]pub struct NeoSkeleton {
pub length: NeoSkeletonLength,
pub components: NeoComponents,
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, time, and optional time zone.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.length: NeoSkeletonLength
Desired formatting length.
components: NeoComponents
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.
Trait Implementations§
source§impl Clone for NeoSkeleton
impl Clone for NeoSkeleton
source§fn clone(&self) -> NeoSkeleton
fn clone(&self) -> NeoSkeleton
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 NeoSkeleton
impl Debug for NeoSkeleton
source§impl<'de> Deserialize<'de> for NeoSkeleton
impl<'de> Deserialize<'de> for NeoSkeleton
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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.
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.
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.
source§impl Hash for NeoSkeleton
impl Hash for NeoSkeleton
source§impl PartialEq for NeoSkeleton
impl PartialEq for NeoSkeleton
source§fn eq(&self, other: &NeoSkeleton) -> bool
fn eq(&self, other: &NeoSkeleton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NeoSkeleton
impl Serialize for NeoSkeleton
impl Copy for NeoSkeleton
impl Eq for NeoSkeleton
impl StructuralPartialEq for NeoSkeleton
Auto Trait Implementations§
impl Freeze for NeoSkeleton
impl RefUnwindSafe for NeoSkeleton
impl Send for NeoSkeleton
impl Sync for NeoSkeleton
impl Unpin for NeoSkeleton
impl UnwindSafe for NeoSkeleton
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