Enum JointCalendarRule
#[non_exhaustive]pub enum JointCalendarRule {
JoinHolidays,
JoinBusinessDays,
}Expand description
How a JointCalendar combines its members.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JoinHolidays
A date is a holiday if it is a holiday in ANY member (union of closures).
JoinBusinessDays
A date is a business day if it is a business day in ANY member (intersection of closures).
Implementations§
§impl JointCalendarRule
impl JointCalendarRule
Trait Implementations§
§impl Clone for JointCalendarRule
impl Clone for JointCalendarRule
§fn clone(&self) -> JointCalendarRule
fn clone(&self) -> JointCalendarRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JointCalendarRule
§impl Debug for JointCalendarRule
impl Debug for JointCalendarRule
impl Eq for JointCalendarRule
§impl FromStr for JointCalendarRule
impl FromStr for JointCalendarRule
§impl PartialEq for JointCalendarRule
impl PartialEq for JointCalendarRule
§fn eq(&self, other: &JointCalendarRule) -> bool
fn eq(&self, other: &JointCalendarRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JointCalendarRule
Auto Trait Implementations§
impl Freeze for JointCalendarRule
impl RefUnwindSafe for JointCalendarRule
impl Send for JointCalendarRule
impl Sync for JointCalendarRule
impl Unpin for JointCalendarRule
impl UnsafeUnpin for JointCalendarRule
impl UnwindSafe for JointCalendarRule
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