pub enum SymbolsV1<'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 SymbolsV1<'data>where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for SymbolsV1<'data>where 'de: 'data,
source§fn 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