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
sourceยงtype ULE = EraStartDateULE
type ULE = EraStartDateULE
The ULE type corresponding to
Self
. Read moresourceยงfn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
sourceยงfn from_unaligned(unaligned: Self::ULE) -> Self
fn from_unaligned(unaligned: Self::ULE) -> Self
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 From<&IsoDateInner> for EraStartDate
impl From<&IsoDateInner> for EraStartDate
sourceยงfn from(other: &IsoDateInner) -> Self
fn from(other: &IsoDateInner) -> Self
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 for EraStartDate
impl PartialEq for EraStartDate
sourceยงimpl PartialOrd for EraStartDate
impl PartialOrd for EraStartDate
sourceยงimpl<'a> Yokeable<'a> for EraStartDatewhere
Self: Sized,
impl<'a> Yokeable<'a> for EraStartDatewhere
Self: Sized,
sourceยงtype Output = EraStartDate
type Output = EraStartDate
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
sourceยงfn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
sourceยงimpl<'zf> ZeroFrom<'zf, EraStartDate> for EraStartDate
impl<'zf> ZeroFrom<'zf, EraStartDate> for EraStartDate
sourceยงimpl<'a> ZeroMapKV<'a> for EraStartDate
impl<'a> ZeroMapKV<'a> for EraStartDate
sourceยง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>
sourceยงtype GetType = EraStartDateULE
type GetType = EraStartDateULE
The type produced by
Container::get()
Read moresourceยง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 moreimpl Copy for EraStartDate
impl Eq for EraStartDate
impl StructuralPartialEq for EraStartDate
Auto Trait Implementationsยง
impl Freeze for EraStartDate
impl RefUnwindSafe for EraStartDate
impl Send for EraStartDate
impl Sync for EraStartDate
impl Unpin for EraStartDate
impl UnwindSafe for EraStartDate
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ยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)