Struct ExDivRule
pub struct ExDivRule {
pub days: u16,
pub day_type: ExDivDayType,
}Expand description
When a bond trades ex-dividend: each coupon’s ex-div date is the coupon date
stepped back days (business or calendar) — settlement strictly past it
forgoes that coupon and accrues negatively (UK DMO boundary semantics:
settlement on the ex-div date is still cum-dividend).
Fields§
§days: u16The lag from the coupon date back to the ex-div date.
day_type: ExDivDayTypeWhether the lag counts business or calendar days.
Trait Implementations§
impl Copy for ExDivRule
impl Eq for ExDivRule
impl StructuralPartialEq for ExDivRule
Auto Trait Implementations§
impl Freeze for ExDivRule
impl RefUnwindSafe for ExDivRule
impl Send for ExDivRule
impl Sync for ExDivRule
impl Unpin for ExDivRule
impl UnsafeUnpin for ExDivRule
impl UnwindSafe for ExDivRule
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