Expand description
The date at which an era started
The order of fields in this struct is important!
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
sourceimpl AsULE for EraStartDate
impl AsULE for EraStartDate
type ULE = EraStartDateULE
type ULE = EraStartDateULE
The ULE type corresponding to Self
. Read more
sourcefn to_unaligned(self) -> <EraStartDate as AsULE>::ULE
fn to_unaligned(self) -> <EraStartDate as AsULE>::ULE
Converts from Self
to Self::ULE
. Read more
sourcefn from_unaligned(unaligned: <EraStartDate as AsULE>::ULE) -> EraStartDate
fn from_unaligned(unaligned: <EraStartDate as AsULE>::ULE) -> EraStartDate
Converts from Self::ULE
to Self
. Read more
sourceimpl Bake for EraStartDate
impl Bake for EraStartDate
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl Clone for EraStartDate
impl Clone for EraStartDate
sourcefn clone(&self) -> EraStartDate
fn clone(&self) -> EraStartDate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EraStartDate
impl Debug for EraStartDate
sourceimpl<'de> Deserialize<'de> for EraStartDate
impl<'de> Deserialize<'de> for EraStartDate
sourcefn 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
sourceimpl<'_> From<&'_ IsoDateInner> for EraStartDate
impl<'_> From<&'_ IsoDateInner> for EraStartDate
sourcefn from(other: &IsoDateInner) -> EraStartDate
fn from(other: &IsoDateInner) -> EraStartDate
Converts to this type from the input type.
sourceimpl FromStr for EraStartDate
impl FromStr for EraStartDate
sourceimpl Hash for EraStartDate
impl Hash for EraStartDate
sourceimpl Ord for EraStartDate
impl Ord for EraStartDate
sourceimpl PartialEq<EraStartDate> for EraStartDate
impl PartialEq<EraStartDate> for EraStartDate
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &EraStartDate) -> bool
fn ne(&self, other: &EraStartDate) -> bool
This method tests for !=
.
sourceimpl PartialOrd<EraStartDate> for EraStartDate
impl PartialOrd<EraStartDate> for EraStartDate
sourcefn partial_cmp(&self, other: &EraStartDate) -> Option<Ordering>
fn partial_cmp(&self, other: &EraStartDate) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serialize for EraStartDate
impl Serialize for EraStartDate
sourcefn 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
sourceimpl<'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>
sourcefn transform(&self) -> &<EraStartDate as Yokeable<'a>>::Output
fn transform(&self) -> &<EraStartDate as Yokeable<'a>>::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(self) -> <EraStartDate as Yokeable<'a>>::Output
fn transform_owned(self) -> <EraStartDate as Yokeable<'a>>::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
sourceunsafe 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 more
sourcefn 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 more
sourceimpl<'zf> ZeroFrom<'zf, EraStartDate> for EraStartDate
impl<'zf> ZeroFrom<'zf, EraStartDate> for EraStartDate
sourcefn 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
.
sourceimpl<'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
impl Copy for EraStartDate
impl Eq for EraStartDate
impl<'a> IsCovariant<'a> for EraStartDate
impl StructuralEq for EraStartDate
impl StructuralPartialEq for EraStartDate
Auto Trait Implementations
impl RefUnwindSafe for EraStartDate
impl Send for EraStartDate
impl Sync for EraStartDate
impl Unpin for EraStartDate
impl UnwindSafe for EraStartDate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more