Enum black76::OptionType
source · pub enum OptionType {
Call,
Put,
}Expand description
The type of option to be priced (call or put).
Variants§
Trait Implementations§
source§impl Clone for OptionType
impl Clone for OptionType
source§fn clone(&self) -> OptionType
fn clone(&self) -> OptionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for OptionType
impl Debug for OptionType
source§impl Display for OptionType
impl Display for OptionType
source§impl PartialEq<OptionType> for OptionType
impl PartialEq<OptionType> for OptionType
source§fn eq(&self, other: &OptionType) -> bool
fn eq(&self, other: &OptionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for OptionType
impl Eq for OptionType
impl StructuralEq for OptionType
impl StructuralPartialEq for OptionType
Auto Trait Implementations§
impl RefUnwindSafe for OptionType
impl Send for OptionType
impl Sync for OptionType
impl Unpin for OptionType
impl UnwindSafe for OptionType
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.