Struct icu_datetime::neo::NeoOptions
source · #[non_exhaustive]pub struct NeoOptions<R: DateTimeMarkers> {
pub length: R::LengthOption,
pub alignment: R::AlignmentOption,
pub era_display: R::EraDisplayOption,
pub fractional_second_digits: R::FractionalSecondDigitsOption,
}
Expand description
Options bag for datetime formatting.
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: R::LengthOption
The desired length of the formatted string, if required for the chosen field set.
See NeoSkeletonLength
.
alignment: R::AlignmentOption
Whether fields should be aligned for a column-like layout, if required for the chosen field set.
See Alignment
.
era_display: R::EraDisplayOption
When to display the era field in the formatted string, if required for the chosen field set.
See EraDisplay
.
fractional_second_digits: R::FractionalSecondDigitsOption
How many fractional seconds to display, if seconds are included in the field set.
Trait Implementations§
source§impl<R: Clone + DateTimeMarkers> Clone for NeoOptions<R>where
R::LengthOption: Clone,
R::AlignmentOption: Clone,
R::EraDisplayOption: Clone,
R::FractionalSecondDigitsOption: Clone,
impl<R: Clone + DateTimeMarkers> Clone for NeoOptions<R>where
R::LengthOption: Clone,
R::AlignmentOption: Clone,
R::EraDisplayOption: Clone,
R::FractionalSecondDigitsOption: Clone,
source§fn clone(&self) -> NeoOptions<R>
fn clone(&self) -> NeoOptions<R>
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<R: Debug + DateTimeMarkers> Debug for NeoOptions<R>where
R::LengthOption: Debug,
R::AlignmentOption: Debug,
R::EraDisplayOption: Debug,
R::FractionalSecondDigitsOption: Debug,
impl<R: Debug + DateTimeMarkers> Debug for NeoOptions<R>where
R::LengthOption: Debug,
R::AlignmentOption: Debug,
R::EraDisplayOption: Debug,
R::FractionalSecondDigitsOption: Debug,
source§impl<R> Default for NeoOptions<R>where
R: DateTimeMarkers,
R::LengthOption: Default,
R::AlignmentOption: Default,
R::EraDisplayOption: Default,
R::FractionalSecondDigitsOption: Default,
impl<R> Default for NeoOptions<R>where
R: DateTimeMarkers,
R::LengthOption: Default,
R::AlignmentOption: Default,
R::EraDisplayOption: Default,
R::FractionalSecondDigitsOption: Default,
source§impl<R> From<NeoSkeletonLength> for NeoOptions<R>where
R: DateTimeMarkers,
R::LengthOption: From<NeoSkeletonLength>,
R::AlignmentOption: Default,
R::EraDisplayOption: Default,
R::FractionalSecondDigitsOption: Default,
impl<R> From<NeoSkeletonLength> for NeoOptions<R>where
R: DateTimeMarkers,
R::LengthOption: From<NeoSkeletonLength>,
R::AlignmentOption: Default,
R::EraDisplayOption: Default,
R::FractionalSecondDigitsOption: Default,
source§fn from(value: NeoSkeletonLength) -> Self
fn from(value: NeoSkeletonLength) -> Self
Converts to this type from the input type.
source§impl<R: PartialEq + DateTimeMarkers> PartialEq for NeoOptions<R>where
R::LengthOption: PartialEq,
R::AlignmentOption: PartialEq,
R::EraDisplayOption: PartialEq,
R::FractionalSecondDigitsOption: PartialEq,
impl<R: PartialEq + DateTimeMarkers> PartialEq for NeoOptions<R>where
R::LengthOption: PartialEq,
R::AlignmentOption: PartialEq,
R::EraDisplayOption: PartialEq,
R::FractionalSecondDigitsOption: PartialEq,
source§fn eq(&self, other: &NeoOptions<R>) -> bool
fn eq(&self, other: &NeoOptions<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<R: Copy + DateTimeMarkers> Copy for NeoOptions<R>where
R::LengthOption: Copy,
R::AlignmentOption: Copy,
R::EraDisplayOption: Copy,
R::FractionalSecondDigitsOption: Copy,
impl<R: Eq + DateTimeMarkers> Eq for NeoOptions<R>where
R::LengthOption: Eq,
R::AlignmentOption: Eq,
R::EraDisplayOption: Eq,
R::FractionalSecondDigitsOption: Eq,
impl<R: DateTimeMarkers> StructuralPartialEq for NeoOptions<R>
Auto Trait Implementations§
impl<R> Freeze for NeoOptions<R>where
<R as DateTimeMarkers>::LengthOption: Freeze,
<R as DateTimeMarkers>::AlignmentOption: Freeze,
<R as DateTimeMarkers>::EraDisplayOption: Freeze,
<R as DateTimeMarkers>::FractionalSecondDigitsOption: Freeze,
impl<R> RefUnwindSafe for NeoOptions<R>where
<R as DateTimeMarkers>::LengthOption: RefUnwindSafe,
<R as DateTimeMarkers>::AlignmentOption: RefUnwindSafe,
<R as DateTimeMarkers>::EraDisplayOption: RefUnwindSafe,
<R as DateTimeMarkers>::FractionalSecondDigitsOption: RefUnwindSafe,
impl<R> Send for NeoOptions<R>where
<R as DateTimeMarkers>::LengthOption: Send,
<R as DateTimeMarkers>::AlignmentOption: Send,
<R as DateTimeMarkers>::EraDisplayOption: Send,
<R as DateTimeMarkers>::FractionalSecondDigitsOption: Send,
impl<R> Sync for NeoOptions<R>where
<R as DateTimeMarkers>::LengthOption: Sync,
<R as DateTimeMarkers>::AlignmentOption: Sync,
<R as DateTimeMarkers>::EraDisplayOption: Sync,
<R as DateTimeMarkers>::FractionalSecondDigitsOption: Sync,
impl<R> Unpin for NeoOptions<R>where
<R as DateTimeMarkers>::LengthOption: Unpin,
<R as DateTimeMarkers>::AlignmentOption: Unpin,
<R as DateTimeMarkers>::EraDisplayOption: Unpin,
<R as DateTimeMarkers>::FractionalSecondDigitsOption: Unpin,
impl<R> UnwindSafe for NeoOptions<R>where
<R as DateTimeMarkers>::LengthOption: UnwindSafe,
<R as DateTimeMarkers>::AlignmentOption: UnwindSafe,
<R as DateTimeMarkers>::EraDisplayOption: UnwindSafe,
<R as DateTimeMarkers>::FractionalSecondDigitsOption: UnwindSafe,
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