pub struct SymbolsV1<'data> {
pub am: Cow<'data, str>,
pub pm: Cow<'data, str>,
pub noon: Option<Cow<'data, str>>,
pub midnight: Option<Cow<'data, str>>,
}
Expand description
Locale data for DayPeriod 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.
Fields§
§am: Cow<'data, str>
Day period for AM (before noon).
pm: Cow<'data, str>
Day period for PM (after noon).
noon: Option<Cow<'data, str>>
Day period for noon, in locales that support it.
midnight: Option<Cow<'data, str>>
Day period for midnight, in locales that support it.
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
source§impl<'a> From<&SymbolsV1<'a>> for LinearSymbolsV1<'a>
impl<'a> From<&SymbolsV1<'a>> for LinearSymbolsV1<'a>
source§fn from(other: &SymbolsV1<'a>) -> LinearSymbolsV1<'a>
fn from(other: &SymbolsV1<'a>) -> LinearSymbolsV1<'a>
Converts to this type from the input type.
source§impl<'data> PartialEq for SymbolsV1<'data>
impl<'data> PartialEq for SymbolsV1<'data>
source§impl<'a> Yokeable<'a> for SymbolsV1<'static>
impl<'a> Yokeable<'a> for SymbolsV1<'static>
source§fn transform_owned(self) -> <SymbolsV1<'static> as Yokeable<'a>>::Output
fn transform_owned(self) -> <SymbolsV1<'static> as Yokeable<'a>>::Output
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§
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