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 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§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§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
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 Self::Output),
fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::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§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§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