Enum HelperForm
enum HelperForm {
SelfDiscounting,
ProjectionOver(CollateralSpec),
BasisOver {
collateral: CollateralSpec,
base_index: String,
},
ProjectionUnder {
discount: CollateralSpec,
foreign: CollateralSpec,
},
CollateralUnder {
pay_discount: CollateralSpec,
pay_projection: Option<String>,
recv_projection: Option<String>,
},
}Expand description
How a group of helpers solves: where the curve under solve sits, and what it reads.
Variants§
SelfDiscounting
The curve discounts and projects itself: a deposit or overnight ladder.
ProjectionOver(CollateralSpec)
A term index’s projection over the held discount for collateral.
BasisOver
A tenor basis: the spread leg’s projection over the held discount and the held base index’s projection.
ProjectionUnder
An index’s projection over a held discount and a held foreign discount: a non-deliverable swap’s strip, whose conversions read the local currency’s curve under the settlement collateral.
CollateralUnder
A cross-currency basis: the quoted leg’s collateral discount under the held pay discount and both projections.
Implementations§
§impl HelperForm
impl HelperForm
fn merged_with(&self, other: &HelperForm) -> Option<HelperForm>
fn merged_with(&self, other: &HelperForm) -> Option<HelperForm>
The one form two helpers on one curve agree on: equal forms, or two
collateral forms under one pay discount whose projections fill each
other in — an FX swap declares none, a basis swap both — else None.
Trait Implementations§
§impl Clone for HelperForm
impl Clone for HelperForm
§fn clone(&self) -> HelperForm
fn clone(&self) -> HelperForm
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more