pub enum MonthNames<'data> {
Linear(VarZeroVec<'data, str>),
LeapLinear(VarZeroVec<'data, str>),
LeapNumeric(Cow<'data, SinglePlaceholderPattern>),
}
Expand description
Names used for representing the month.
This uses a data marker attribute for length. See YearNames
for more information on the scheme. This
has an additional 1
value used for numeric names, only found for calendars with leap months.
๐ This item has a stack size of 32 bytes on the stable toolchain at release date.
Variantsยง
Linear(VarZeroVec<'data, str>)
Month codes M01, M02, M03, .. (can allow for M13 onwards)
Found for solar and pure lunar calendars
LeapLinear(VarZeroVec<'data, str>)
Month codes M01, M02, M03, .. M01L, M02L, โฆ
Empty entries for non-present month codes. Will have an equal number of leap and non-leap entries.
Found for lunisolar and lunisidereal calendars
LeapNumeric(Cow<'data, SinglePlaceholderPattern>)
This represents the formatting to apply to numeric values to produce the corresponding leap month symbol.
For numeric formatting only, on calendars with leap months
Trait Implementationsยง
Sourceยงimpl<'data> Clone for MonthNames<'data>
impl<'data> Clone for MonthNames<'data>
Sourceยงfn clone(&self) -> MonthNames<'data>
fn clone(&self) -> MonthNames<'data>
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSourceยงimpl<'data> Debug for MonthNames<'data>
impl<'data> Debug for MonthNames<'data>
Sourceยงimpl<'de: 'data, 'data> Deserialize<'de> for MonthNames<'data>
impl<'de: 'data, 'data> Deserialize<'de> for MonthNames<'data>
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>,
Sourceยงimpl<'a> From<&Symbols<'a>> for MonthNames<'a>
impl<'a> From<&Symbols<'a>> for MonthNames<'a>
Sourceยงimpl MaybeAsVarULE for MonthNames<'_>
impl MaybeAsVarULE for MonthNames<'_>
Sourceยงimpl<'data> PartialEq for MonthNames<'data>
impl<'data> PartialEq for MonthNames<'data>
Sourceยงimpl<'a> Yokeable<'a> for MonthNames<'static>
impl<'a> Yokeable<'a> for MonthNames<'static>
Sourceยงtype Output = MonthNames<'a>
type Output = MonthNames<'a>
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
Sourceยงfn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Sourceยงimpl<'zf, 'zf_inner> ZeroFrom<'zf, MonthNames<'zf_inner>> for MonthNames<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, MonthNames<'zf_inner>> for MonthNames<'zf>
Sourceยงfn zero_from(this: &'zf MonthNames<'zf_inner>) -> Self
fn zero_from(this: &'zf MonthNames<'zf_inner>) -> Self
C
into a struct that may retain references into C
.impl<'data> StructuralPartialEq for MonthNames<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for MonthNames<'data>
impl<'data> RefUnwindSafe for MonthNames<'data>
impl<'data> Send for MonthNames<'data>
impl<'data> Sync for MonthNames<'data>
impl<'data> Unpin for MonthNames<'data>
impl<'data> UnwindSafe for MonthNames<'data>
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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