pub enum MonthNamesV1<'data> {
Linear(VarZeroVec<'data, str>),
LeapLinear(VarZeroVec<'data, str>),
LeapNumeric(Cow<'data, Pattern<SinglePlaceholder>>),
}
Expand description
Names used for representing the month.
This uses a data marker attribute for length. See YearNamesV1
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, Pattern<SinglePlaceholder>>)
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> Bake for MonthNamesV1<'data>
impl<'data> Bake for MonthNamesV1<'data>
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl<'data> BakeSize for MonthNamesV1<'data>
impl<'data> BakeSize for MonthNamesV1<'data>
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
source§impl<'data> Clone for MonthNamesV1<'data>
impl<'data> Clone for MonthNamesV1<'data>
source§fn clone(&self) -> MonthNamesV1<'data>
fn clone(&self) -> MonthNamesV1<'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 MonthNamesV1<'data>
impl<'data> Debug for MonthNamesV1<'data>
source§impl<'de, 'data> Deserialize<'de> for MonthNamesV1<'data>where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for MonthNamesV1<'data>where
'de: 'data,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MonthNamesV1<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MonthNamesV1<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl<'a> From<&SymbolsV1<'a>> for MonthNamesV1<'a>
impl<'a> From<&SymbolsV1<'a>> for MonthNamesV1<'a>
source§fn from(other: &SymbolsV1<'a>) -> MonthNamesV1<'a>
fn from(other: &SymbolsV1<'a>) -> MonthNamesV1<'a>
source§impl<'data> PartialEq for MonthNamesV1<'data>
impl<'data> PartialEq for MonthNamesV1<'data>
source§impl<'data> Serialize for MonthNamesV1<'data>
impl<'data> Serialize for MonthNamesV1<'data>
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl<'a> Yokeable<'a> for MonthNamesV1<'static>
impl<'a> Yokeable<'a> for MonthNamesV1<'static>
source§type Output = MonthNamesV1<'a>
type Output = MonthNamesV1<'a>
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
source§fn transform_owned(self) -> <MonthNamesV1<'static> as Yokeable<'a>>::Output
fn transform_owned(self) -> <MonthNamesV1<'static> as Yokeable<'a>>::Output
source§unsafe fn make(
this: <MonthNamesV1<'static> as Yokeable<'a>>::Output,
) -> MonthNamesV1<'static>
unsafe fn make( this: <MonthNamesV1<'static> as Yokeable<'a>>::Output, ) -> MonthNamesV1<'static>
Self<'a>
’s lifetime. Read moresource§fn transform_mut<F>(&'a mut self, f: F)
fn transform_mut<F>(&'a mut self, f: F)
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moresource§impl<'zf, 'zf_inner> ZeroFrom<'zf, MonthNamesV1<'zf_inner>> for MonthNamesV1<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, MonthNamesV1<'zf_inner>> for MonthNamesV1<'zf>
source§fn zero_from(this: &'zf MonthNamesV1<'zf_inner>) -> MonthNamesV1<'zf>
fn zero_from(this: &'zf MonthNamesV1<'zf_inner>) -> MonthNamesV1<'zf>
C
into a struct that may retain references into C
.impl<'data> StructuralPartialEq for MonthNamesV1<'data>
Auto Trait Implementations§
impl<'data> Freeze for MonthNamesV1<'data>
impl<'data> RefUnwindSafe for MonthNamesV1<'data>
impl<'data> Send for MonthNamesV1<'data>
impl<'data> Sync for MonthNamesV1<'data>
impl<'data> Unpin for MonthNamesV1<'data>
impl<'data> UnwindSafe for MonthNamesV1<'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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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