pub enum Engine {
BlackScholes,
MonteCarlo,
Binomial,
FiniteDifference,
BaroneAdesiWhaley,
BjerksundStensland,
}Expand description
Enum for different engines to price options
Variants§
BlackScholes
MonteCarlo
Binomial
FiniteDifference
BaroneAdesiWhaley
Barone-Adesi-Whaley quadratic approximation for American vanillas.
BjerksundStensland
Bjerksund-Stensland (2002) two-boundary approximation for American vanillas — a lower bound, generally tighter than BAW.
Trait Implementations§
impl StructuralPartialEq for Engine
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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