pub struct Date { /* private fields */ }
Expand description
Value that represents a date
Implementations§
source§impl Date
impl Date
sourcepub fn new(year: [u8; 4], month: [u8; 2], day: [u8; 2]) -> Self
pub fn new(year: [u8; 4], month: [u8; 2], day: [u8; 2]) -> Self
Creates a new Date
structure from byte slices
§Arguments
year
- A 4 character length year, e.g. “2021”month
- A 2 character length mont, e.g. “02”day
- A 2 character length day, e.g. “15”
Trait Implementations§
source§impl PartialEq for Date
impl PartialEq for Date
impl Copy for Date
impl Eq for Date
Auto Trait Implementations§
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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