Enum BondStrike
#[non_exhaustive]pub enum BondStrike {
Clean(f64),
Dirty(f64),
Yield(f64),
}Expand description
The option’s strike, in the market’s quoting alternatives. Price strikes are per 100 face.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Clean(f64)
A clean price per 100 of the face alive at exercise settlement — the
dirty strike is K + accrued(settlement) on that face.
Dirty(f64)
A dirty price per 100 of the face alive at exercise settlement.
Yield(f64)
A yield — the dirty price it implies on the bond’s remaining flows at exercise settlement, compounded at the coupon frequency.
Implementations§
§impl BondStrike
impl BondStrike
Trait Implementations§
§impl Clone for BondStrike
impl Clone for BondStrike
§fn clone(&self) -> BondStrike
fn clone(&self) -> BondStrike
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 BondStrike
§impl Debug for BondStrike
impl Debug for BondStrike
§impl PartialEq for BondStrike
impl PartialEq for BondStrike
impl StructuralPartialEq for BondStrike
Auto Trait Implementations§
impl Freeze for BondStrike
impl RefUnwindSafe for BondStrike
impl Send for BondStrike
impl Sync for BondStrike
impl Unpin for BondStrike
impl UnsafeUnpin for BondStrike
impl UnwindSafe for BondStrike
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