Enum CalendarTenor
pub(crate) enum CalendarTenor {
Business(i64),
Period(Period),
}Expand description
A tenor a calendar can step: a Period, or "<n>B" business days — the
unit only a calendar resolves, so it is not a Period.
Variants§
Trait Implementations§
§impl<'py> FromPyObject<'py> for CalendarTenor
impl<'py> FromPyObject<'py> for CalendarTenor
§fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>
fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>
Auto Trait Implementations§
impl Freeze for CalendarTenor
impl RefUnwindSafe for CalendarTenor
impl Send for CalendarTenor
impl Sync for CalendarTenor
impl Unpin for CalendarTenor
impl UnsafeUnpin for CalendarTenor
impl UnwindSafe for CalendarTenor
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