pub enum Symbols<'data> {
SolarTwelve([Cow<'data, str>; 12]),
Other(ZeroMap<'data, MonthCode, str>),
}
Expand description
Locale data for Month corresponding to the symbols.
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Variantsยง
SolarTwelve([Cow<'data, str>; 12])
Twelve symbols for a solar calendar
This is an optimization to reduce data size.
Other(ZeroMap<'data, MonthCode, str>)
A calendar with an arbitrary number of months, potentially including leap months
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'de, 'data> Deserialize<'de> for Symbols<'data>where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for Symbols<'data>where
'de: 'data,
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<Symbols<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Symbols<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl<'a> From<&Symbols<'a>> for MonthNames<'a>
impl<'a> From<&Symbols<'a>> for MonthNames<'a>
Sourceยงfn from(other: &Symbols<'a>) -> MonthNames<'a>
fn from(other: &Symbols<'a>) -> MonthNames<'a>
Converts to this type from the input type.
Sourceยงimpl<'a> Yokeable<'a> for Symbols<'static>
impl<'a> Yokeable<'a> for Symbols<'static>
Sourceยงtype Output = Symbols<'a>
type Output = Symbols<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
impl<'data> StructuralPartialEq for Symbols<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for Symbols<'data>
impl<'data> RefUnwindSafe for Symbols<'data>
impl<'data> Send for Symbols<'data>
impl<'data> Sync for Symbols<'data>
impl<'data> Unpin for Symbols<'data>
impl<'data> UnwindSafe for Symbols<'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
Mutably borrows from an owned value. Read more
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>
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