pub trait BlackScholesReal:
Sized
+ Copy
+ Send
+ Sync
+ Default
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ Neg<Output = Self> {
type Mask: Copy;
// Required methods
fn splat(val: f64) -> Self;
fn abs(self) -> Self;
fn sqrt(self) -> Self;
fn ln(self) -> Self;
fn exp(self) -> Self;
fn cdf(self) -> Self;
fn cdf_with_pdf(self) -> (Self, Self);
fn mul_add(self, a: Self, b: Self) -> Self;
fn recip_precise(self) -> Self;
fn select(mask: Self::Mask, t: Self, f: Self) -> Self;
fn cmp_gt(self, other: Self) -> Self::Mask;
}Required Associated Types§
Required Methods§
fn splat(val: f64) -> Self
fn abs(self) -> Self
fn sqrt(self) -> Self
fn ln(self) -> Self
fn exp(self) -> Self
fn cdf(self) -> Self
fn cdf_with_pdf(self) -> (Self, Self)
fn mul_add(self, a: Self, b: Self) -> Self
fn recip_precise(self) -> Self
fn select(mask: Self::Mask, t: Self, f: Self) -> Self
fn cmp_gt(self, other: Self) -> Self::Mask
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.