Enum blackscholes_wasm::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 FromWasmAbi for OptionType
impl FromWasmAbi for OptionType
source§impl IntoWasmAbi for OptionType
impl IntoWasmAbi for OptionType
source§impl OptionFromWasmAbi for OptionType
impl OptionFromWasmAbi for OptionType
source§impl OptionIntoWasmAbi for OptionType
impl OptionIntoWasmAbi 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§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.§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.