Enum StripNotional
pub(crate) enum StripNotional {
One(f64),
PerPeriod(Vec<f64>),
}Expand description
A strip’s notional: one for every period, or one per period in schedule order — an amortising leg.
Variants§
Implementations§
§impl StripNotional
impl StripNotional
fn per_period(self, periods: usize) -> PyResult<Vec<f64>>
fn per_period(self, periods: usize) -> PyResult<Vec<f64>>
The notional of each of periods periods, or a ValueError naming
both counts where a ladder does not cover the schedule.
Trait Implementations§
§impl<'py> FromPyObject<'py> for StripNotional
impl<'py> FromPyObject<'py> for StripNotional
§fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>
fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>
Auto Trait Implementations§
impl Freeze for StripNotional
impl RefUnwindSafe for StripNotional
impl Send for StripNotional
impl Sync for StripNotional
impl Unpin for StripNotional
impl UnsafeUnpin for StripNotional
impl UnwindSafe for StripNotional
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