pub struct WeekendsOnly;Trait Implementations§
Source§impl Calendar for WeekendsOnly
impl Calendar for WeekendsOnly
fn is_business_day(&self, date: NaiveDate) -> bool
fn naive_date_to_dkmy(&self, date: NaiveDate) -> (u32, Weekday, u32, i32, u32)
fn last_day_of_month(&self, date: NaiveDate) -> NaiveDate
fn end_of_month(&self, date: NaiveDate) -> NaiveDate
fn easter_monday(&self, year: i32) -> u32
fn orthodox_easter_monday(&self, year: i32) -> u32
fn is_weekend(&self, date: NaiveDate) -> bool
fn is_holiday(&self, date: NaiveDate) -> bool
fn adjust( &self, date: NaiveDate, bdc: BusinessDayConvention, ) -> Option<NaiveDate>
fn advance( &self, date: NaiveDate, period: Period, bdc: BusinessDayConvention, end_of_month: Option<bool>, ) -> Result<Option<NaiveDate>>
fn business_days_between( &self, from: NaiveDate, to: NaiveDate, include_first: Option<bool>, include_last: Option<bool>, ) -> i64
Source§impl Debug for WeekendsOnly
impl Debug for WeekendsOnly
Source§impl Default for WeekendsOnly
impl Default for WeekendsOnly
Source§impl<'de> Deserialize<'de> for WeekendsOnly
impl<'de> Deserialize<'de> for WeekendsOnly
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
Auto Trait Implementations§
impl Freeze for WeekendsOnly
impl RefUnwindSafe for WeekendsOnly
impl Send for WeekendsOnly
impl Sync for WeekendsOnly
impl Unpin for WeekendsOnly
impl UnsafeUnpin for WeekendsOnly
impl UnwindSafe for WeekendsOnly
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.