pub struct Date { /* private fields */ }
Implementations
sourceimpl Date
impl Date
pub fn from_year_month_day(
year: u16,
month: u8,
day: u8
) -> Result<Date, DateRangeError>
pub fn from_year_month(year: u16, month: u8) -> Result<Date, DateRangeError>
pub fn from_year(year: u16) -> Result<Date, DateRangeError>
pub fn from_month_day(month: u8, day: u8) -> Result<Date, DateRangeError>
pub fn from_day(day: u8) -> Result<Date, DateRangeError>
pub fn from_date_time<T: TimeZone>(
date_time: DateTime<T>
) -> Result<Date, DateRangeError>
Trait Implementations
sourceimpl ValidatedWrapper for Date
impl ValidatedWrapper for Date
impl Eq for Date
impl StructuralEq for Date
impl StructuralPartialEq for Date
impl Validated 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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