Struct PinnedSurvival
pub struct PinnedSurvival {
curve: Arc<Survival>,
provenance: Option<Arc<CurveProvenance>>,
refit: Option<Arc<SurvivalRefit>>,
}Expand description
A survival curve on its way into a market, with whatever ladder it carries —
the credit twin of PinnedCurve, so a CalibratedSurvival pins the way
a Calibrated does and a bare curve pins with no ladder.
Fields§
§curve: Arc<Survival>§provenance: Option<Arc<CurveProvenance>>§refit: Option<Arc<SurvivalRefit>>Implementations§
§impl PinnedSurvival
impl PinnedSurvival
pub fn with_provenance(
self,
provenance: Arc<CurveProvenance>,
) -> Result<Self, ProvenanceMismatch>
pub fn with_provenance( self, provenance: Arc<CurveProvenance>, ) -> Result<Self, ProvenanceMismatch>
This curve with provenance as its ladder.
§Errors
ProvenanceMismatch if the ladder’s rung count differs from the
curve’s parameter count.
pub fn with_refit(self, refit: Arc<SurvivalRefit>) -> Self
pub fn with_refit(self, refit: Arc<SurvivalRefit>) -> Self
This pin with what the curve was calibrated from, so a market holding it can solve it again under a moved recovery with its quotes held.
pub fn provenance(&self) -> Option<&Arc<CurveProvenance>>
pub fn provenance(&self) -> Option<&Arc<CurveProvenance>>
The ladder, when one was pinned.
Trait Implementations§
§impl Clone for PinnedSurvival
impl Clone for PinnedSurvival
§fn clone(&self) -> PinnedSurvival
fn clone(&self) -> PinnedSurvival
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 more§impl Debug for PinnedSurvival
impl Debug for PinnedSurvival
§impl From<Arc<Survival>> for PinnedSurvival
impl From<Arc<Survival>> for PinnedSurvival
§impl From<CalibratedDensity> for PinnedSurvival
impl From<CalibratedDensity> for PinnedSurvival
§fn from(calibrated: CalibratedDensity) -> Self
fn from(calibrated: CalibratedDensity) -> Self
A curve calibrated in default density pinned with the ladder it reprices and the refit that solves it again in density.
§impl From<CalibratedSurvival> for PinnedSurvival
impl From<CalibratedSurvival> for PinnedSurvival
§fn from(calibrated: CalibratedSurvival) -> Self
fn from(calibrated: CalibratedSurvival) -> Self
A bootstrapped curve pinned with the ladder it reprices.
Auto Trait Implementations§
impl !RefUnwindSafe for PinnedSurvival
impl !UnwindSafe for PinnedSurvival
impl Freeze for PinnedSurvival
impl Send for PinnedSurvival
impl Sync for PinnedSurvival
impl Unpin for PinnedSurvival
impl UnsafeUnpin for PinnedSurvival
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