pub enum SymbolsV1<'data> {
SolarTwelve([Cow<'data, str>; 12]),
Other(ZeroMap<'data, MonthCode, str>),
}
Expand description
Locale data for Month corresponding to the symbols.
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
sourceimpl<'data> Bake for SymbolsV1<'data>
impl<'data> Bake for SymbolsV1<'data>
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl<'de, 'data> Deserialize<'de> for SymbolsV1<'data> where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for SymbolsV1<'data> where
'de: 'data,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SymbolsV1<'data>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SymbolsV1<'data>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'data> Serialize for SymbolsV1<'data>
impl<'data> Serialize for SymbolsV1<'data>
sourcefn 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,
Serialize this value into the given Serde serializer. Read more
sourceimpl<'a> Yokeable<'a> for SymbolsV1<'static>
impl<'a> Yokeable<'a> for SymbolsV1<'static>
sourcefn transform(&'a self) -> &'a <SymbolsV1<'static> as Yokeable<'a>>::Output
fn transform(&'a self) -> &'a <SymbolsV1<'static> as Yokeable<'a>>::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(self) -> <SymbolsV1<'static> as Yokeable<'a>>::Output
fn transform_owned(self) -> <SymbolsV1<'static> as Yokeable<'a>>::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
impl<'data> StructuralPartialEq for SymbolsV1<'data>
Auto Trait Implementations
impl<'data> RefUnwindSafe for SymbolsV1<'data>
impl<'data> Send for SymbolsV1<'data>
impl<'data> Sync for SymbolsV1<'data>
impl<'data> Unpin for SymbolsV1<'data>
impl<'data> UnwindSafe for SymbolsV1<'data>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more