Struct WindowCoupon
pub struct WindowCoupon {
pub date: NaiveDate,
pub per_100: f64,
pub reinvested: Option<OvernightCoupon>,
}Expand description
One coupon the cash lender is entitled to over the term, per 100 face.
Entitlement, not payment: a coupon paid inside the term belongs to the holder, and so does one paid after the far date when the bond goes back ex-dividend — its record date passed while the lender held it. The second has a reinvestment period running backwards, from its payment date to the far date.
Fields§
§date: NaiveDateThe payment date.
per_100: f64The amount per 100 face.
reinvested: Option<OvernightCoupon>For a floating buy/sell-back, the strip between the coupon’s date and the far date — forwards when it pays inside the term, backwards when it pays after it.
Implementations§
§impl WindowCoupon
impl WindowCoupon
pub fn paid_after(&self, end: NaiveDate) -> bool
pub fn paid_after(&self, end: NaiveDate) -> bool
Whether the coupon pays after the far date: entitled ex-dividend.
Trait Implementations§
§impl Clone for WindowCoupon
impl Clone for WindowCoupon
§fn clone(&self) -> WindowCoupon
fn clone(&self) -> WindowCoupon
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 more§impl Debug for WindowCoupon
impl Debug for WindowCoupon
§impl PartialEq for WindowCoupon
impl PartialEq for WindowCoupon
impl StructuralPartialEq for WindowCoupon
Auto Trait Implementations§
impl Freeze for WindowCoupon
impl RefUnwindSafe for WindowCoupon
impl Send for WindowCoupon
impl Sync for WindowCoupon
impl Unpin for WindowCoupon
impl UnsafeUnpin for WindowCoupon
impl UnwindSafe for WindowCoupon
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