Struct Rebased
pub struct Rebased {
base: Box<Curve>,
reference: NaiveDate,
}Expand description
A base read forward from a later reference date: its discount factor over its own at that date.
Owns no parameters. Its base’s pillars are its risk, read through the same
walks Shocked uses.
Fields§
§base: Box<Curve>§reference: NaiveDateImplementations§
§impl Rebased
impl Rebased
pub fn new(base: Curve, reference: NaiveDate) -> Result<Self, CurveError>
pub fn new(base: Curve, reference: NaiveDate) -> Result<Self, CurveError>
pub fn view<R: Scalar>(&self) -> RebasedView<'_, R>
pub fn view<R: Scalar>(&self) -> RebasedView<'_, R>
This transform lifted into mode R.
pub(crate) fn view_with_slice<'a, R: Scalar>(
&'a self,
rest: &mut &'a [R],
) -> RebasedView<'a, R>
pub(crate) fn view_with_slice<'a, R: Scalar>( &'a self, rest: &mut &'a [R], ) -> RebasedView<'a, R>
One step of a substituted walk: the base takes the parameters.
pub(crate) fn view_seeding<R: Scalar + Seedable>(
&self,
seed: &mut Option<usize>,
) -> RebasedView<'_, R>
pub(crate) fn view_seeding<R: Scalar + Seedable>( &self, seed: &mut Option<usize>, ) -> RebasedView<'_, R>
One step of the seeded walk: the seed reaches the base.
Trait Implementations§
impl StructuralPartialEq for Rebased
Auto Trait Implementations§
impl Freeze for Rebased
impl RefUnwindSafe for Rebased
impl Send for Rebased
impl Sync for Rebased
impl Unpin for Rebased
impl UnsafeUnpin for Rebased
impl UnwindSafe for Rebased
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