Struct DigitalStrike
pub struct DigitalStrike {
pub strike: f64,
pub payoff: Option<f64>,
pub long: bool,
}Expand description
One side of a digital: its strike on the coupon’s rate, what it pays, and which side of it the holder is on.
Fields§
§strike: f64The strike on the rate gearing · index + spread.
payoff: Option<f64>A cash-or-nothing digital’s fixed rate, or None for asset-or-nothing,
which pays the coupon’s rate itself.
long: boolLong (bought) or short (sold).
Trait Implementations§
§impl Clone for DigitalStrike
impl Clone for DigitalStrike
§fn clone(&self) -> DigitalStrike
fn clone(&self) -> DigitalStrike
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 DigitalStrike
§impl Debug for DigitalStrike
impl Debug for DigitalStrike
§impl PartialEq for DigitalStrike
impl PartialEq for DigitalStrike
impl StructuralPartialEq for DigitalStrike
Auto Trait Implementations§
impl Freeze for DigitalStrike
impl RefUnwindSafe for DigitalStrike
impl Send for DigitalStrike
impl Sync for DigitalStrike
impl Unpin for DigitalStrike
impl UnsafeUnpin for DigitalStrike
impl UnwindSafe for DigitalStrike
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