pub struct BackwardFlat;Expand description
Factory for BackwardFlatInterpolation (QuantLib’s BackwardFlat traits
class); unlike most interpolations a single node suffices.
Trait Implementations§
Source§impl Clone for BackwardFlat
impl Clone for BackwardFlat
Source§fn clone(&self) -> BackwardFlat
fn clone(&self) -> BackwardFlat
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 BackwardFlat
Source§impl Default for BackwardFlat
impl Default for BackwardFlat
Source§fn default() -> BackwardFlat
fn default() -> BackwardFlat
Returns the “default value” for a type. Read more
Source§impl Interpolator for BackwardFlat
impl Interpolator for BackwardFlat
Source§type Output = BackwardFlatInterpolation
type Output = BackwardFlatInterpolation
The interpolation type this factory builds.
Source§fn interpolate(
&self,
x: &[Real],
y: &[Real],
) -> QlResult<BackwardFlatInterpolation>
fn interpolate( &self, x: &[Real], y: &[Real], ) -> QlResult<BackwardFlatInterpolation>
Builds an interpolation through
(x, y).Source§fn required_points(&self) -> Size
fn required_points(&self) -> Size
The minimum number of nodes the interpolation requires.
Auto Trait Implementations§
impl Freeze for BackwardFlat
impl RefUnwindSafe for BackwardFlat
impl Send for BackwardFlat
impl Sync for BackwardFlat
impl Unpin for BackwardFlat
impl UnsafeUnpin for BackwardFlat
impl UnwindSafe for BackwardFlat
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