Enum PyCallEntry
pub(crate) enum PyCallEntry {
Based(NaiveDate, f64, Named<CallKind>, Named<PriceBasis>),
Clean(NaiveDate, f64, Named<CallKind>),
}Expand description
One callable_bond schedule entry: (date, price, kind), the price clean,
or (date, price, kind, basis) with basis the price basis.
Variants§
Trait Implementations§
§impl<'py> FromPyObject<'py> for PyCallEntry
By length, then field by field, so a misspelt kind or basis raises its own
ValueError rather than a TypeError naming both shapes.
impl<'py> FromPyObject<'py> for PyCallEntry
By length, then field by field, so a misspelt kind or basis raises its own
ValueError rather than a TypeError naming both shapes.
§fn extract_bound(entry: &Bound<'py, PyAny>) -> PyResult<Self>
fn extract_bound(entry: &Bound<'py, PyAny>) -> PyResult<Self>
Auto Trait Implementations§
impl Freeze for PyCallEntry
impl RefUnwindSafe for PyCallEntry
impl Send for PyCallEntry
impl Sync for PyCallEntry
impl Unpin for PyCallEntry
impl UnsafeUnpin for PyCallEntry
impl UnwindSafe for PyCallEntry
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