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) -> <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 Bake for EraStartDate
impl Bake for EraStartDate
sourceยงfn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
sourceยงimpl BakeSize for EraStartDate
impl BakeSize for EraStartDate
sourceยงfn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
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 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 Serialize for EraStartDate
impl Serialize for EraStartDate
sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceยงimpl<'a> Yokeable<'a> for EraStartDatewhere
EraStartDate: Sized,
impl<'a> Yokeable<'a> for EraStartDatewhere
EraStartDate: 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) -> <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)
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> 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
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
)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