pub struct PricingResult {
pub pv: f64,
pub greeks: Greeks,
pub std_err: Option<f64>,
}Expand description
The result of a single price()
call: present value, sensitivities, and the Monte Carlo standard error
when a simulation engine produced the value.
Fields§
§pv: f64Present value.
greeks: GreeksSensitivities of pv.
std_err: Option<f64>Monte Carlo standard error of pv; None for deterministic engines.
Implementations§
Trait Implementations§
Source§impl Clone for PricingResult
impl Clone for PricingResult
Source§fn clone(&self) -> PricingResult
fn clone(&self) -> PricingResult
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 Copy for PricingResult
Source§impl Debug for PricingResult
impl Debug for PricingResult
Source§impl<'de> Deserialize<'de> for PricingResult
impl<'de> Deserialize<'de> for PricingResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PricingResult> for ContractOutput
impl From<PricingResult> for ContractOutput
Source§fn from(r: PricingResult) -> Self
fn from(r: PricingResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PricingResult
impl PartialEq for PricingResult
Source§impl Serialize for PricingResult
impl Serialize for PricingResult
impl StructuralPartialEq for PricingResult
Auto Trait Implementations§
impl Freeze for PricingResult
impl RefUnwindSafe for PricingResult
impl Send for PricingResult
impl Sync for PricingResult
impl Unpin for PricingResult
impl UnsafeUnpin for PricingResult
impl UnwindSafe for PricingResult
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