Struct BondFutureAnalysis
pub struct BondFutureAnalysis {
pub rows: Vec<DeliverableAnalysis>,
pub ctd: String,
pub ctd_index: usize,
pub theoretical_price: f64,
}Expand description
The basket analysis: one row per deliverable, the cheapest to deliver, and the theoretical futures price off its forward.
Fields§
§rows: Vec<DeliverableAnalysis>One row per deliverable, in basket order.
ctd: StringThe cheapest-to-deliver row’s key: the minimum net basis. A label
for display; ctd_index is the typed twin a cross-language check
compares.
ctd_index: usizeThe cheapest-to-deliver row’s position in rows — the same row ctd
names, typed, so a check needs no string comparison.
theoretical_price: f64forward_clean(CTD) / CF(CTD).
Trait Implementations§
§impl Clone for BondFutureAnalysis
impl Clone for BondFutureAnalysis
§fn clone(&self) -> BondFutureAnalysis
fn clone(&self) -> BondFutureAnalysis
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 BondFutureAnalysis
impl Debug for BondFutureAnalysis
§impl PartialEq for BondFutureAnalysis
impl PartialEq for BondFutureAnalysis
§fn eq(&self, other: &BondFutureAnalysis) -> bool
fn eq(&self, other: &BondFutureAnalysis) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BondFutureAnalysis
Auto Trait Implementations§
impl Freeze for BondFutureAnalysis
impl RefUnwindSafe for BondFutureAnalysis
impl Send for BondFutureAnalysis
impl Sync for BondFutureAnalysis
impl Unpin for BondFutureAnalysis
impl UnsafeUnpin for BondFutureAnalysis
impl UnwindSafe for BondFutureAnalysis
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