pub struct DateSymbols<'data> {
pub months: Contexts<'data>,
pub weekdays: Contexts<'data>,
pub eras: Eras<'data>,
}
Expand description
Symbol data for the months, weekdays, and eras needed to format a date.
For more information on date time symbols, see FieldSymbol
.
๐ This item has a stack size of 3792 bytes on the stable toolchain at release date.
๐ง 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ยง
ยงmonths: Contexts<'data>
Symbol data for months.
weekdays: Contexts<'data>
Symbol data for weekdays.
eras: Eras<'data>
Symbol data for eras.
Trait Implementationsยง
Sourceยงimpl<'data> Clone for DateSymbols<'data>
impl<'data> Clone for DateSymbols<'data>
Sourceยงfn clone(&self) -> DateSymbols<'data>
fn clone(&self) -> DateSymbols<'data>
Returns a copy of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl<'data> Debug for DateSymbols<'data>
impl<'data> Debug for DateSymbols<'data>
Sourceยงimpl<'data> Default for DateSymbols<'data>
impl<'data> Default for DateSymbols<'data>
Sourceยงfn default() -> DateSymbols<'data>
fn default() -> DateSymbols<'data>
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de, 'data> Deserialize<'de> for DateSymbols<'data>where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for DateSymbols<'data>where
'de: 'data,
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<DateSymbols<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DateSymbols<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl MaybeAsVarULE for DateSymbols<'_>
impl MaybeAsVarULE for DateSymbols<'_>
Sourceยงimpl<'data> PartialEq for DateSymbols<'data>
impl<'data> PartialEq for DateSymbols<'data>
Sourceยงimpl<'a> Yokeable<'a> for DateSymbols<'static>
impl<'a> Yokeable<'a> for DateSymbols<'static>
Sourceยงtype Output = DateSymbols<'a>
type Output = DateSymbols<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
Sourceยงfn transform_owned(self) -> <DateSymbols<'static> as Yokeable<'a>>::Output
fn transform_owned(self) -> <DateSymbols<'static> as Yokeable<'a>>::Output
Sourceยงunsafe fn make(
this: <DateSymbols<'static> as Yokeable<'a>>::Output,
) -> DateSymbols<'static>
unsafe fn make( this: <DateSymbols<'static> as Yokeable<'a>>::Output, ) -> DateSymbols<'static>
This method can be used to cast away
Self<'a>
โs lifetime. Read moreSourceยงfn transform_mut<F>(&'a mut self, f: F)
fn transform_mut<F>(&'a mut self, f: F)
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moreSourceยงimpl<'zf, 'zf_inner> ZeroFrom<'zf, DateSymbols<'zf_inner>> for DateSymbols<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, DateSymbols<'zf_inner>> for DateSymbols<'zf>
Sourceยงfn zero_from(this: &'zf DateSymbols<'zf_inner>) -> DateSymbols<'zf>
fn zero_from(this: &'zf DateSymbols<'zf_inner>) -> DateSymbols<'zf>
Clone the other
C
into a struct that may retain references into C
.impl<'data> StructuralPartialEq for DateSymbols<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for DateSymbols<'data>
impl<'data> RefUnwindSafe for DateSymbols<'data>
impl<'data> Send for DateSymbols<'data>
impl<'data> Sync for DateSymbols<'data>
impl<'data> Unpin for DateSymbols<'data>
impl<'data> UnwindSafe for DateSymbols<'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