pub enum OptionType {
Call,
Put,
}Expand description
Right conveyed by an option: to buy (call) or to sell (put) the underlying at the strike.
Exhaustive by design: every vanilla payoff is one of the two.
Variants§
Trait Implementations§
Source§impl Clone for OptionType
impl Clone for OptionType
impl Copy for OptionType
Source§impl Debug for OptionType
impl Debug for OptionType
impl Eq for OptionType
Source§impl Hash for OptionType
impl Hash for OptionType
Source§impl PartialEq for OptionType
impl PartialEq for OptionType
impl StructuralPartialEq for OptionType
Auto Trait Implementations§
impl Forget for OptionType
impl Freeze for OptionType
impl Move for OptionType
impl RefUnwindSafe for OptionType
impl Send for OptionType
impl Sync for OptionType
impl Unpin for OptionType
impl UnsafeUnpin for OptionType
impl UnwindSafe for OptionType
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