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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 From<OptionType> for JsValue
impl From<OptionType> for JsValue
Source§fn from(value: OptionType) -> Self
fn from(value: OptionType) -> Self
Converts to this type from the input type.
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 for OptionType
impl PartialEq for OptionType
Source§impl TryFromJsValue for OptionType
impl TryFromJsValue for OptionType
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <OptionType as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <OptionType as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for OptionType
impl VectorFromWasmAbi for OptionType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[OptionType]>
Source§impl VectorIntoJsValue for OptionType
impl VectorIntoJsValue for OptionType
fn vector_into_jsvalue(vector: Box<[OptionType]>) -> JsValue
Source§impl VectorIntoWasmAbi for OptionType
impl VectorIntoWasmAbi for OptionType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[OptionType]>) -> Self::Abi
Source§impl WasmDescribeVector for OptionType
impl WasmDescribeVector for OptionType
impl Copy for OptionType
impl Eq for OptionType
impl StructuralPartialEq for OptionType
Auto Trait Implementations§
impl Freeze for OptionType
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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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
.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.