pub struct JapaneseEras<'data> {
    pub dates_to_eras: ZeroVec<'data, (EraStartDate, TinyAsciiStr<16>)>,
}Expand description
A data structure containing the necessary era data for constructing a
Japanese calendar object
๐ง 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ยง
ยงdates_to_eras: ZeroVec<'data, (EraStartDate, TinyAsciiStr<16>)>A map from era start dates to their era codes
Trait Implementationsยง
Sourceยงimpl<'data> Clone for JapaneseEras<'data>
 
impl<'data> Clone for JapaneseEras<'data>
Sourceยงfn clone(&self) -> JapaneseEras<'data>
 
fn clone(&self) -> JapaneseEras<'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 JapaneseEras<'data>
 
impl<'data> Debug for JapaneseEras<'data>
Sourceยงimpl<'data> Default for JapaneseEras<'data>
 
impl<'data> Default for JapaneseEras<'data>
Sourceยงfn default() -> JapaneseEras<'data>
 
fn default() -> JapaneseEras<'data>
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de, 'data> Deserialize<'de> for JapaneseEras<'data>where
    'de: 'data,
 
impl<'de, 'data> Deserialize<'de> for JapaneseEras<'data>where
    'de: 'data,
Sourceยงfn deserialize<__D>(
    __deserializer: __D,
) -> Result<JapaneseEras<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<JapaneseEras<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl MaybeAsVarULE for JapaneseEras<'_>
 
impl MaybeAsVarULE for JapaneseEras<'_>
Sourceยงimpl<'data> PartialEq for JapaneseEras<'data>
 
impl<'data> PartialEq for JapaneseEras<'data>
Sourceยงimpl<'a> Yokeable<'a> for JapaneseEras<'static>
 
impl<'a> Yokeable<'a> for JapaneseEras<'static>
Sourceยงtype Output = JapaneseEras<'a>
 
type Output = JapaneseEras<'a>
This type MUST be 
Self with the 'static replaced with 'a, i.e. Self<'a>Sourceยงfn transform_owned(self) -> <JapaneseEras<'static> as Yokeable<'a>>::Output
 
fn transform_owned(self) -> <JapaneseEras<'static> as Yokeable<'a>>::Output
Sourceยงunsafe fn make(
    this: <JapaneseEras<'static> as Yokeable<'a>>::Output,
) -> JapaneseEras<'static>
 
unsafe fn make( this: <JapaneseEras<'static> as Yokeable<'a>>::Output, ) -> JapaneseEras<'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, JapaneseEras<'zf_inner>> for JapaneseEras<'zf>
 
impl<'zf, 'zf_inner> ZeroFrom<'zf, JapaneseEras<'zf_inner>> for JapaneseEras<'zf>
Sourceยงfn zero_from(this: &'zf JapaneseEras<'zf_inner>) -> JapaneseEras<'zf>
 
fn zero_from(this: &'zf JapaneseEras<'zf_inner>) -> JapaneseEras<'zf>
Clone the other 
C into a struct that may retain references into C.impl<'data> StructuralPartialEq for JapaneseEras<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for JapaneseEras<'data>
impl<'data> RefUnwindSafe for JapaneseEras<'data>
impl<'data> Send for JapaneseEras<'data>
impl<'data> Sync for JapaneseEras<'data>
impl<'data> Unpin for JapaneseEras<'data>
impl<'data> UnwindSafe for JapaneseEras<'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