Struct icu::calendar::provider::EraStartDate
source · pub struct EraStartDate {
pub year: i32,
pub month: u8,
pub day: u8,
}
Expand description
The date at which an era started
The order of fields in this struct is important!
🚧 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§
§year: i32
The year the era started in
month: u8
The month the era started in
day: u8
The day the era started in
Trait Implementations§
source§impl AsULE for EraStartDate
impl AsULE for EraStartDate
§type ULE = EraStartDateULE
type ULE = EraStartDateULE
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> <EraStartDate as AsULE>::ULE
fn to_unaligned(self) -> <EraStartDate as AsULE>::ULE
source§fn from_unaligned(unaligned: <EraStartDate as AsULE>::ULE) -> EraStartDate
fn from_unaligned(unaligned: <EraStartDate as AsULE>::ULE) -> EraStartDate
source§impl Clone for EraStartDate
impl Clone for EraStartDate
source§fn clone(&self) -> EraStartDate
fn clone(&self) -> EraStartDate
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 Debug for EraStartDate
impl Debug for EraStartDate
source§impl<'de> Deserialize<'de> for EraStartDate
impl<'de> Deserialize<'de> for EraStartDate
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EraStartDate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<EraStartDate, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&IsoDateInner> for EraStartDate
impl From<&IsoDateInner> for EraStartDate
source§fn from(other: &IsoDateInner) -> EraStartDate
fn from(other: &IsoDateInner) -> EraStartDate
Converts to this type from the input type.
source§impl FromStr for EraStartDate
impl FromStr for EraStartDate
source§impl Hash for EraStartDate
impl Hash for EraStartDate
source§impl Ord for EraStartDate
impl Ord for EraStartDate
source§fn cmp(&self, other: &EraStartDate) -> Ordering
fn cmp(&self, other: &EraStartDate) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EraStartDate> for EraStartDate
impl PartialEq<EraStartDate> for EraStartDate
source§fn eq(&self, other: &EraStartDate) -> bool
fn eq(&self, other: &EraStartDate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EraStartDate> for EraStartDate
impl PartialOrd<EraStartDate> for EraStartDate
source§fn partial_cmp(&self, other: &EraStartDate) -> Option<Ordering>
fn partial_cmp(&self, other: &EraStartDate) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Yokeable<'a> for EraStartDate
impl<'a> Yokeable<'a> for EraStartDate
§type Output = EraStartDate
type Output = EraStartDate
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
source§fn transform(&self) -> &<EraStartDate as Yokeable<'a>>::Output
fn transform(&self) -> &<EraStartDate as Yokeable<'a>>::Output
source§fn transform_owned(self) -> <EraStartDate as Yokeable<'a>>::Output
fn transform_owned(self) -> <EraStartDate as Yokeable<'a>>::Output
source§unsafe fn make(this: <EraStartDate as Yokeable<'a>>::Output) -> EraStartDate
unsafe fn make(this: <EraStartDate as Yokeable<'a>>::Output) -> EraStartDate
This method can be used to cast away
Self<'a>
’s lifetime. Read moresource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut <EraStartDate as Yokeable<'a>>::Output),
fn transform_mut<F>(&'a mut self, f: F)where F: 'static + for<'b> FnOnce(&'b mut <EraStartDate as Yokeable<'a>>::Output),
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moresource§impl<'zf> ZeroFrom<'zf, EraStartDate> for EraStartDate
impl<'zf> ZeroFrom<'zf, EraStartDate> for EraStartDate
source§fn zero_from(this: &'zf EraStartDate) -> EraStartDate
fn zero_from(this: &'zf EraStartDate) -> EraStartDate
Clone the other
C
into a struct that may retain references into C
.source§impl<'a> ZeroMapKV<'a> for EraStartDate
impl<'a> ZeroMapKV<'a> for EraStartDate
§type Container = ZeroVec<'a, EraStartDate>
type Container = ZeroVec<'a, EraStartDate>
The container that can be used with this type: [
ZeroVec
] or [VarZeroVec
].type Slice = ZeroSlice<EraStartDate>
§type GetType = EraStartDateULE
type GetType = EraStartDateULE
The type produced by
Container::get()
Read more§type OwnedType = EraStartDate
type OwnedType = EraStartDate
The type produced by
Container::replace()
and Container::remove()
,
also used during deserialization. If Self
is human readable serialized,
deserializing to Self::OwnedType
should produce the same value once
passed through Self::owned_as_self()
Read more