Enum PyTermination
pub(crate) enum PyTermination {
Date(NaiveDate),
Tenor(String),
}Expand description
A swap’s end as Python spells it: a termination date, or a forward
tenor such as "5Y" or "2Y2Y" that dates the swap from the template’s
spot on the valuation date given in the first argument.
Variants§
Trait Implementations§
§impl<'py> FromPyObject<'py> for PyTermination
impl<'py> FromPyObject<'py> for PyTermination
§fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>
fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>
Auto Trait Implementations§
impl Freeze for PyTermination
impl RefUnwindSafe for PyTermination
impl Send for PyTermination
impl Sync for PyTermination
impl Unpin for PyTermination
impl UnsafeUnpin for PyTermination
impl UnwindSafe for PyTermination
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