Enum LevelInterpolation
pub enum LevelInterpolation {
Linear,
LogLinear,
}Expand description
How projected levels between nodes are computed.
A discount curve’s pillars are log discount factors, so its interpolation acts on log ordinates by construction. An inflation curve’s ordinates are raw levels, so each member here has to name what it acts on.
Variants§
Linear
Straight line on index levels.
LogLinear
Straight line on ln(level) — exponential growth between nodes, so the
midpoint of levels a and b is √(a·b).
Implementations§
§impl LevelInterpolation
impl LevelInterpolation
Trait Implementations§
§impl Clone for LevelInterpolation
impl Clone for LevelInterpolation
§fn clone(&self) -> LevelInterpolation
fn clone(&self) -> LevelInterpolation
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 LevelInterpolation
§impl Debug for LevelInterpolation
impl Debug for LevelInterpolation
§impl Default for LevelInterpolation
impl Default for LevelInterpolation
§fn default() -> LevelInterpolation
fn default() -> LevelInterpolation
Returns the “default value” for a type. Read more
impl Eq for LevelInterpolation
§impl FromStr for LevelInterpolation
impl FromStr for LevelInterpolation
§impl PartialEq for LevelInterpolation
impl PartialEq for LevelInterpolation
§fn eq(&self, other: &LevelInterpolation) -> bool
fn eq(&self, other: &LevelInterpolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LevelInterpolation
Auto Trait Implementations§
impl Freeze for LevelInterpolation
impl RefUnwindSafe for LevelInterpolation
impl Send for LevelInterpolation
impl Sync for LevelInterpolation
impl Unpin for LevelInterpolation
impl UnsafeUnpin for LevelInterpolation
impl UnwindSafe for LevelInterpolation
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