pub enum BusinessDayConvention {
Unadjusted,
Following,
ModifiedFollowing,
Preceding,
ModifiedPreceding,
}Expand description
How a date falling on a non-business day is adjusted.
Variants§
Unadjusted
Leave the date as it is.
Following
Move to the next business day.
ModifiedFollowing
Move to the next business day unless that crosses into the next calendar month, in which case move to the preceding business day.
Preceding
Move to the previous business day.
ModifiedPreceding
Move to the previous business day unless that crosses into the previous calendar month, in which case move to the following one.
Trait Implementations§
Source§impl Clone for BusinessDayConvention
impl Clone for BusinessDayConvention
Source§fn clone(&self) -> BusinessDayConvention
fn clone(&self) -> BusinessDayConvention
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 BusinessDayConvention
Source§impl Debug for BusinessDayConvention
impl Debug for BusinessDayConvention
Source§impl Default for BusinessDayConvention
impl Default for BusinessDayConvention
Source§fn default() -> BusinessDayConvention
fn default() -> BusinessDayConvention
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BusinessDayConvention
impl<'de> Deserialize<'de> for BusinessDayConvention
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
impl Eq for BusinessDayConvention
Source§impl PartialEq for BusinessDayConvention
impl PartialEq for BusinessDayConvention
Source§impl Serialize for BusinessDayConvention
impl Serialize for BusinessDayConvention
impl StructuralPartialEq for BusinessDayConvention
Auto Trait Implementations§
impl Freeze for BusinessDayConvention
impl RefUnwindSafe for BusinessDayConvention
impl Send for BusinessDayConvention
impl Sync for BusinessDayConvention
impl Unpin for BusinessDayConvention
impl UnsafeUnpin for BusinessDayConvention
impl UnwindSafe for BusinessDayConvention
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