pub struct StandardDate {
pub day: u8,
pub month: u8,
pub year: u16,
}Expand description
Represents a calendar date.
Used for parsing date formats like “15/03/2024” or “31-12-2025”.
§Examples
use temps_core::StandardDate;
// "15/03/2024"
let date = StandardDate {
day: 15,
month: 3,
year: 2024,
};Fields§
§day: u8Day of month (1-31)
month: u8Month (1-12)
year: u16Year (e.g., 2024)
Trait Implementations§
Source§impl Clone for StandardDate
impl Clone for StandardDate
Source§fn clone(&self) -> StandardDate
fn clone(&self) -> StandardDate
Returns a duplicate 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 StandardDate
impl Debug for StandardDate
Source§impl PartialEq for StandardDate
impl PartialEq for StandardDate
impl StructuralPartialEq for StandardDate
Auto Trait Implementations§
impl Freeze for StandardDate
impl RefUnwindSafe for StandardDate
impl Send for StandardDate
impl Sync for StandardDate
impl Unpin for StandardDate
impl UnwindSafe for StandardDate
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