#[non_exhaustive]pub enum Input {
Spot,
Strike,
Rate,
CostOfCarry,
Volatility,
Time,
}Expand description
A named input of a pricing function.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Spot
Price of the underlying.
Strike
Strike price.
Rate
Continuously compounded risk-free rate.
CostOfCarry
Continuously compounded cost of carry.
Volatility
Volatility of the underlying.
Time
Time to expiry.
Trait Implementations§
impl Copy for Input
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Input
impl Move for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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