Struct PinnedInflation
pub struct PinnedInflation {
curve: Arc<Inflation>,
provenance: Option<Arc<CurveProvenance>>,
}Expand description
An inflation curve on its way into a market, with whatever ladder it
carries — the third pin, shaped like PinnedCurve and PinnedSurvival.
Fields§
§curve: Arc<Inflation>§provenance: Option<Arc<CurveProvenance>>Implementations§
§impl PinnedInflation
impl PinnedInflation
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 provenance(&self) -> Option<&Arc<CurveProvenance>>
pub fn provenance(&self) -> Option<&Arc<CurveProvenance>>
The ladder, when one was pinned.
Trait Implementations§
§impl Clone for PinnedInflation
impl Clone for PinnedInflation
§fn clone(&self) -> PinnedInflation
fn clone(&self) -> PinnedInflation
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 PinnedInflation
impl Debug for PinnedInflation
§impl From<Arc<Inflation>> for PinnedInflation
impl From<Arc<Inflation>> for PinnedInflation
§impl From<CalibratedInflation> for PinnedInflation
impl From<CalibratedInflation> for PinnedInflation
§fn from(calibrated: CalibratedInflation) -> Self
fn from(calibrated: CalibratedInflation) -> Self
A solved curve pinned with the ladder it reprices.
Auto Trait Implementations§
impl Freeze for PinnedInflation
impl RefUnwindSafe for PinnedInflation
impl Send for PinnedInflation
impl Sync for PinnedInflation
impl Unpin for PinnedInflation
impl UnsafeUnpin for PinnedInflation
impl UnwindSafe for PinnedInflation
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