Struct AmericanOnFuture
pub(crate) struct AmericanOnFuture<R> {
pub value: R,
pub european: R,
pub early_exercise: R,
pub critical: Option<f64>,
}Expand description
An American option on a future priced by Barone-Adesi–Whaley, in parts.
value = european + early_exercise, and critical is the futures price
beyond which the option is exercised at once (None where early exercise
is never optimal and the value is the European one).
Fields§
§value: RThe American value.
european: RThe discounted European value.
early_exercise: RWhat the right to exercise early adds.
critical: Option<f64>The critical futures price, where one applies.
Trait Implementations§
§impl<R: Clone> Clone for AmericanOnFuture<R>
impl<R: Clone> Clone for AmericanOnFuture<R>
§fn clone(&self) -> AmericanOnFuture<R>
fn clone(&self) -> AmericanOnFuture<R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<R: Copy> Copy for AmericanOnFuture<R>
§impl<R: Debug> Debug for AmericanOnFuture<R>
impl<R: Debug> Debug for AmericanOnFuture<R>
§impl<R: PartialEq> PartialEq for AmericanOnFuture<R>
impl<R: PartialEq> PartialEq for AmericanOnFuture<R>
§fn eq(&self, other: &AmericanOnFuture<R>) -> bool
fn eq(&self, other: &AmericanOnFuture<R>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<R: PartialEq> StructuralPartialEq for AmericanOnFuture<R>
Auto Trait Implementations§
impl<R> Freeze for AmericanOnFuture<R>where
R: Freeze,
impl<R> RefUnwindSafe for AmericanOnFuture<R>where
R: RefUnwindSafe,
impl<R> Send for AmericanOnFuture<R>where
R: Send,
impl<R> Sync for AmericanOnFuture<R>where
R: Sync,
impl<R> Unpin for AmericanOnFuture<R>where
R: Unpin,
impl<R> UnsafeUnpin for AmericanOnFuture<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for AmericanOnFuture<R>where
R: UnwindSafe,
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