Struct icu_datetime::provider::neo::SkeletonDataIndex
source · pub struct SkeletonDataIndex {
pub has_long: bool,
pub has_medium: bool,
pub has_plurals: bool,
pub has_eras: bool,
}
Fields§
§has_long: bool
If true, the first pattern is for Long
.
If false, fall back to the next pattern (`Medium``).
has_medium: bool
If true, the next pattern is for Long
.
If false, fall back to the next pattern (Short
).
has_plurals: bool
If true, there are 6 plural variants for each pattern. If false, it is just a single variant.
has_eras: bool
If true, there are 2 era variants for each pattern. The first does not have an era, and the second has an era. if false, there is no era variant.
Trait Implementations§
source§impl AsULE for SkeletonDataIndex
impl AsULE for SkeletonDataIndex
§type ULE = SkeletonDataIndexULE
type ULE = SkeletonDataIndexULE
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(unaligned: Self::ULE) -> Self
fn from_unaligned(unaligned: Self::ULE) -> Self
source§impl Bake for SkeletonDataIndex
impl Bake for SkeletonDataIndex
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for SkeletonDataIndex
impl BakeSize for SkeletonDataIndex
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for SkeletonDataIndex
impl Clone for SkeletonDataIndex
source§fn clone(&self) -> SkeletonDataIndex
fn clone(&self) -> SkeletonDataIndex
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 SkeletonDataIndex
impl Debug for SkeletonDataIndex
source§impl<'de> Deserialize<'de> for SkeletonDataIndex
impl<'de> Deserialize<'de> for SkeletonDataIndex
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 PartialEq for SkeletonDataIndex
impl PartialEq for SkeletonDataIndex
source§fn eq(&self, other: &SkeletonDataIndex) -> bool
fn eq(&self, other: &SkeletonDataIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SkeletonDataIndex
impl Serialize for SkeletonDataIndex
impl Copy for SkeletonDataIndex
impl StructuralPartialEq for SkeletonDataIndex
Auto Trait Implementations§
impl Freeze for SkeletonDataIndex
impl RefUnwindSafe for SkeletonDataIndex
impl Send for SkeletonDataIndex
impl Sync for SkeletonDataIndex
impl Unpin for SkeletonDataIndex
impl UnwindSafe for SkeletonDataIndex
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