pub struct DateConstraints { /* private fields */ }
Expand description
Date constraints configuration
Trait Implementations§
Source§impl Clone for DateConstraints
impl Clone for DateConstraints
Source§fn clone(&self) -> DateConstraints
fn clone(&self) -> DateConstraints
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 DateConstraints
impl Debug for DateConstraints
Source§impl Default for DateConstraints
impl Default for DateConstraints
Source§fn default() -> DateConstraints
fn default() -> DateConstraints
Returns the “default value” for a type. Read more
Source§impl HasDateConstraints for DateConstraints
impl HasDateConstraints for DateConstraints
Source§fn is_day_forbidden(&self, date: &NaiveDate) -> bool
fn is_day_forbidden(&self, date: &NaiveDate) -> bool
Returns true if the given date is forbidden.
Source§fn is_month_forbidden(&self, year_month_info: &NaiveDate) -> bool
fn is_month_forbidden(&self, year_month_info: &NaiveDate) -> bool
Returns true if the entire month described by year_month_info is forbidden.
Source§fn is_year_forbidden(&self, year: i32) -> bool
fn is_year_forbidden(&self, year: i32) -> bool
Returns true if the entire given year is forbidden.
Source§fn is_year_group_forbidden(&self, year: i32) -> bool
fn is_year_group_forbidden(&self, year: i32) -> bool
Returns true if the entire group of years including the given year is forbidden.
A group of years are inclusive intervals [1980, 1999], [2000, 2019], [2020, 2039], …
Auto Trait Implementations§
impl Freeze for DateConstraints
impl RefUnwindSafe for DateConstraints
impl Send for DateConstraints
impl Sync for DateConstraints
impl Unpin for DateConstraints
impl UnwindSafe for DateConstraints
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