Enum StrikeAxis
pub enum StrikeAxis {
Absolute,
SpreadToAtm,
}Expand description
What the numbers on a surface’s strike axis measure.
A cap market quotes a smile at absolute rates; a swaption cube quotes one
at spreads to the at-the-money forward, resolving a column as
strike = atm_forward + spread. The two are not the same
coordinate, and a reader holding one cannot name the other.
Variants§
Absolute
Absolute rate strikes — what a cap quotes, and what every smiled surface meant before the axis could say otherwise.
SpreadToAtm
Additive offsets from the at-the-money forward, as a swaption cube’s strike spreads are.
Implementations§
§impl StrikeAxis
impl StrikeAxis
Trait Implementations§
§impl Clone for StrikeAxis
impl Clone for StrikeAxis
§fn clone(&self) -> StrikeAxis
fn clone(&self) -> StrikeAxis
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 StrikeAxis
§impl Debug for StrikeAxis
impl Debug for StrikeAxis
§impl Default for StrikeAxis
impl Default for StrikeAxis
§fn default() -> StrikeAxis
fn default() -> StrikeAxis
Returns the “default value” for a type. Read more
impl Eq for StrikeAxis
§impl FromStr for StrikeAxis
impl FromStr for StrikeAxis
§impl Hash for StrikeAxis
impl Hash for StrikeAxis
§impl PartialEq for StrikeAxis
impl PartialEq for StrikeAxis
impl StructuralPartialEq for StrikeAxis
Auto Trait Implementations§
impl Freeze for StrikeAxis
impl RefUnwindSafe for StrikeAxis
impl Send for StrikeAxis
impl Sync for StrikeAxis
impl Unpin for StrikeAxis
impl UnsafeUnpin for StrikeAxis
impl UnwindSafe for StrikeAxis
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