Enum BusinessDayConvention
pub enum BusinessDayConvention {
Following,
ModifiedFollowing,
Preceding,
ModifiedPreceding,
None,
Nearest,
HalfMonthModifiedFollowing,
}Expand description
How a non-business date is rolled to a business date (FpML
BusinessDayConventionEnum).
Variants§
Following
Roll to the next business day.
ModifiedFollowing
Roll forward, unless that crosses a month boundary, then roll back.
Preceding
Roll to the previous business day.
ModifiedPreceding
Roll backward, unless that crosses a month boundary, then roll forward.
None
No adjustment.
Nearest
Roll to the nearest business day (forward on a tie).
HalfMonthModifiedFollowing
Roll forward, unless that crosses the mid-month (the 15th) or the month end, in which case roll back.
Implementations§
Trait Implementations§
§impl Clone for BusinessDayConvention
impl Clone for BusinessDayConvention
§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
§impl Debug for BusinessDayConvention
impl Debug for BusinessDayConvention
impl Eq for BusinessDayConvention
§impl FromStr for BusinessDayConvention
impl FromStr for BusinessDayConvention
§impl Hash for BusinessDayConvention
impl Hash for BusinessDayConvention
§impl PartialEq for BusinessDayConvention
impl PartialEq for BusinessDayConvention
§fn eq(&self, other: &BusinessDayConvention) -> bool
fn eq(&self, other: &BusinessDayConvention) -> bool
Tests for
self and other values to be equal, and is used by ==.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