Enum TrancheRecovery
pub enum TrancheRecovery {
Contract(RecoveryModel),
Market,
}Expand description
Where a tranche’s recovery model comes from.
A contract model is data on the trade and carries no risk row. The
market model is Amraoui–Hitier on the floor the market marks for the
tranche’s index
(MarketContext::with_recovery_floor),
read in the pricing mode, so it carries a row on the recovery axis — a
base-correlation desk calibrates the floor to the super-senior tranche.
Variants§
Contract(RecoveryModel)
A recovery model stated on the trade.
Market
Amraoui–Hitier on the market’s floor for the index.
Implementations§
§impl TrancheRecovery
impl TrancheRecovery
pub fn from_floor(floor: Option<TrancheMark>) -> Result<Self, CreditError>
pub fn from_floor(floor: Option<TrancheMark>) -> Result<Self, CreditError>
The recovery model an optional floor names: none is constant
recovery, a number Amraoui–Hitier on that floor, "Market"
Amraoui–Hitier on the market’s.
§Errors
CreditError::RecoveryFloor for a contract floor outside [0, 1).
Trait Implementations§
§impl Clone for TrancheRecovery
impl Clone for TrancheRecovery
§fn clone(&self) -> TrancheRecovery
fn clone(&self) -> TrancheRecovery
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 TrancheRecovery
§impl Debug for TrancheRecovery
impl Debug for TrancheRecovery
§impl Default for TrancheRecovery
impl Default for TrancheRecovery
§impl From<RecoveryModel> for TrancheRecovery
impl From<RecoveryModel> for TrancheRecovery
§fn from(model: RecoveryModel) -> Self
fn from(model: RecoveryModel) -> Self
Converts to this type from the input type.
§impl PartialEq for TrancheRecovery
impl PartialEq for TrancheRecovery
impl StructuralPartialEq for TrancheRecovery
Auto Trait Implementations§
impl Freeze for TrancheRecovery
impl RefUnwindSafe for TrancheRecovery
impl Send for TrancheRecovery
impl Sync for TrancheRecovery
impl Unpin for TrancheRecovery
impl UnsafeUnpin for TrancheRecovery
impl UnwindSafe for TrancheRecovery
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