pub struct CalendarDate {
pub year: i32,
pub month: u8,
pub day: u8,
}Fields§
§year: i32§month: u8§day: u8Implementations§
Source§impl CalendarDate
impl CalendarDate
pub fn new(year: i32, month: u8, day: u8) -> Result<Self, InterpretationError>
pub fn ordinal_days(&self) -> i64
Trait Implementations§
Source§impl Clone for CalendarDate
impl Clone for CalendarDate
Source§fn clone(&self) -> CalendarDate
fn clone(&self) -> CalendarDate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CalendarDate
Source§impl Debug for CalendarDate
impl Debug for CalendarDate
Source§impl<'de> Deserialize<'de> for CalendarDate
impl<'de> Deserialize<'de> for CalendarDate
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 Display for CalendarDate
impl Display for CalendarDate
impl Eq for CalendarDate
Source§impl PartialEq for CalendarDate
impl PartialEq for CalendarDate
Source§impl Serialize for CalendarDate
impl Serialize for CalendarDate
impl StructuralPartialEq for CalendarDate
Auto Trait Implementations§
impl Freeze for CalendarDate
impl RefUnwindSafe for CalendarDate
impl Send for CalendarDate
impl Sync for CalendarDate
impl Unpin for CalendarDate
impl UnsafeUnpin for CalendarDate
impl UnwindSafe for CalendarDate
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