pub enum DateRollingConvention {
Actual,
Following,
ModifiedFollowing,
Preceding,
ModifiedPreceding,
ModifiedRolling,
}
Expand description
Date rolling business day conventions.
From Wikipedia (https://en.wikipedia.org/wiki/Date_rolling): “”“ In finance, date rolling occurs when a payment day or date used to calculate accrued interest falls on a holiday, according to a given business calendar. In this case the date is moved forward or backward in time such that it falls in a business day, according with the same business calendar. “”“
Variants§
Actual
Actual: paid on the actual day, even if it is a non-business day.
Following
Following business day: the payment date is rolled to the next business day.
ModifiedFollowing
Modified following business day: the payment date is rolled to the next business day, unless doing so would cause the payment to be in the next calendar month, in which case the payment date is rolled to the previous business day. Many institutions have month-end accounting procedures that necessitate this.
Preceding
Previous business day: the payment date is rolled to the previous business day.
ModifiedPreceding
Modified previous business day: the payment date is rolled to the previous business day, unless doing so would cause the payment to be in the previous calendar month, in which case the payment date is rolled to the next business day. Many institutions have month-end accounting procedures that necessitate this.
ModifiedRolling
Modified Rolling business day: the payment date is rolled to the next business day. The adjusted week date is used for the next coupon date. So adjustments are cumulative (excluding month change).
Trait Implementations§
Source§impl Clone for DateRollingConvention
impl Clone for DateRollingConvention
Source§fn clone(&self) -> DateRollingConvention
fn clone(&self) -> DateRollingConvention
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DateRollingConvention
impl Debug for DateRollingConvention
Source§impl Default for DateRollingConvention
impl Default for DateRollingConvention
Source§fn default() -> DateRollingConvention
fn default() -> DateRollingConvention
Default date rolling convention: Actual (paid on the actual day, even if it is a non-business day.)
Source§impl Display for DateRollingConvention
impl Display for DateRollingConvention
Source§impl PartialEq for DateRollingConvention
impl PartialEq for DateRollingConvention
impl Copy for DateRollingConvention
impl Eq for DateRollingConvention
impl StructuralPartialEq for DateRollingConvention
Auto Trait Implementations§
impl Freeze for DateRollingConvention
impl RefUnwindSafe for DateRollingConvention
impl Send for DateRollingConvention
impl Sync for DateRollingConvention
impl Unpin for DateRollingConvention
impl UnwindSafe for DateRollingConvention
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.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>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString
. Read more