Enum PyConstituentInput
pub(crate) enum PyConstituentInput {
Triple((PyFixedRateBond, f64, f64)),
Quad((PyFixedRateBond, f64, f64, String)),
Quint((PyFixedRateBond, f64, f64, Option<String>, String)),
}Expand description
One constituent of a basket as Python spells it: the triple, or the triple with the bond’s own repo key.
Variants§
Triple((PyFixedRateBond, f64, f64))
Quad((PyFixedRateBond, f64, f64, String))
Quint((PyFixedRateBond, f64, f64, Option<String>, String))
Trait Implementations§
§impl<'py> FromPyObject<'py> for PyConstituentInput
impl<'py> FromPyObject<'py> for PyConstituentInput
§fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>
fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>
Auto Trait Implementations§
impl !RefUnwindSafe for PyConstituentInput
impl !UnwindSafe for PyConstituentInput
impl Freeze for PyConstituentInput
impl Send for PyConstituentInput
impl Sync for PyConstituentInput
impl Unpin for PyConstituentInput
impl UnsafeUnpin for PyConstituentInput
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