Struct quantmath::pricers::selfpricer::SelfPricer[][src]

pub struct SelfPricer { /* fields omitted */ }

The SelfPricer calculator uses the Priceable interface of an instrument to evaluate the instrument . It then exposes this interface as a Pricer, allowing bumping for risk calculation.

Methods

impl SelfPricer
[src]

Trait Implementations

impl Clone for SelfPricer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Pricer for SelfPricer
[src]

Returns the present value. If no discount date is supplied, the value is discounted to the settlement date of the instrument being priced. This means that every listed instrument should give a price equal to the current screen price. If you supply a discount date, the value is discounted to that date. This allows you to view prices that are consistent across different exchanges, but it is not possible to choose a discount date such that all values equal their screen prices, unless all underlyings have the same settlement date. Read more

impl PricerClone for SelfPricer
[src]

impl Bumpable for SelfPricer
[src]

Applies a bump to market data or to anything derived from market data, such as a model or a pricer. Returns true if anything was bumped. Read more

Optionally allows access to the dependencies that drive the bumpability.

Allows access to the pricing context that is to be bumped. This is useful for bumps that adjust their size according to the forward etc. Read more

Creates a save area to use with this bump

Restores the state to what it was before the bump

impl TimeBumpable for SelfPricer
[src]

Applies a time bump to this object. The object is modified with no save and restore facility, so you probably need to deep_clone the object first. Read more

Auto Trait Implementations

impl Send for SelfPricer

impl Sync for SelfPricer