Enum Termination
pub enum Termination {
Date(NaiveDate),
Tenor(ForwardTenor),
}Expand description
Where a swap draft ends: a stated date, or a forward tenor such as 5Y or
2Y2Y read from the draft’s trade date and its template’s spot, exactly as
swap_dates_from_tenor reads one.
Variants§
Date(NaiveDate)
The last accrual date, as stated.
Tenor(ForwardTenor)
A forward tenor from the draft’s trade date.
Trait Implementations§
§impl Clone for Termination
impl Clone for Termination
§fn clone(&self) -> Termination
fn clone(&self) -> Termination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Termination
§impl Debug for Termination
impl Debug for Termination
§impl From<ForwardTenor> for Termination
impl From<ForwardTenor> for Termination
§fn from(tenor: ForwardTenor) -> Self
fn from(tenor: ForwardTenor) -> Self
Converts to this type from the input type.
§impl From<NaiveDate> for Termination
impl From<NaiveDate> for Termination
§impl FromStr for Termination
impl FromStr for Termination
§impl PartialEq for Termination
impl PartialEq for Termination
impl StructuralPartialEq for Termination
Auto Trait Implementations§
impl Freeze for Termination
impl RefUnwindSafe for Termination
impl Send for Termination
impl Sync for Termination
impl Unpin for Termination
impl UnsafeUnpin for Termination
impl UnwindSafe for Termination
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