Enum SmileComponent
pub enum SmileComponent {
RiskReversal,
Butterfly,
}Expand description
The part of an FX smile a smile-shape leg moves.
FX options are quoted as an at-the-money vol, a 25-delta risk reversal — the call’s vol less the put’s — and a 25-delta butterfly — the wings’ average less ATM. A node’s side is its quote: a call quote is the call wing, a put quote the put wing, and the ATM quote moves with neither.
Variants§
RiskReversal
A move s adds s/2 to the call wing and takes s/2 off the put wing.
Butterfly
A move s adds s to both wings.
Implementations§
§impl SmileComponent
impl SmileComponent
Trait Implementations§
§impl Clone for SmileComponent
impl Clone for SmileComponent
§fn clone(&self) -> SmileComponent
fn clone(&self) -> SmileComponent
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 SmileComponent
§impl Debug for SmileComponent
impl Debug for SmileComponent
impl Eq for SmileComponent
§impl Hash for SmileComponent
impl Hash for SmileComponent
§impl PartialEq for SmileComponent
impl PartialEq for SmileComponent
impl StructuralPartialEq for SmileComponent
Auto Trait Implementations§
impl Freeze for SmileComponent
impl RefUnwindSafe for SmileComponent
impl Send for SmileComponent
impl Sync for SmileComponent
impl Unpin for SmileComponent
impl UnsafeUnpin for SmileComponent
impl UnwindSafe for SmileComponent
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