Struct Observation
pub struct Observation {
pub start: NaiveDate,
pub end: NaiveDate,
pub tau: f64,
pub weight: f64,
}Expand description
One daily observation of an overnight index.
Built curve-free when the coupon is resolved, so a valuation walks dates rather than a calendar.
Fields§
§start: NaiveDateThe day’s rate period start.
end: NaiveDateIts end.
tau: f64The day’s year fraction on the index’s day count.
weight: f64The year fraction the day’s rate accrues over in the coupon: tau on a
plain strip; the interest day’s own fraction under a lookback or a rate
cut-off, where the rate read is another day’s.
Implementations§
Trait Implementations§
§impl Clone for Observation
impl Clone for Observation
§fn clone(&self) -> Observation
fn clone(&self) -> Observation
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 Observation
§impl Debug for Observation
impl Debug for Observation
§impl PartialEq for Observation
impl PartialEq for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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