Enum RatePayoff
pub enum RatePayoff {
Collar(Collar),
Digital(Digital),
}Expand description
An option a floating coupon carries on its rate gearing · index + spread
— the payoff axis of the coupon layer, over any IBOR observation.
Variants§
Collar(Collar)
The rate capped and/or floored.
Digital(Digital)
The rate plus digital options struck on it.
Implementations§
§impl RatePayoff
impl RatePayoff
pub fn check(&self) -> Result<(), PayoffError>
pub fn check(&self) -> Result<(), PayoffError>
Whether this is a payoff at all: a collar with a bound and its floor not above its cap; a digital with a side and a positive gap; every number finite.
§Errors
The PayoffError naming what is wrong.
Trait Implementations§
§impl Clone for RatePayoff
impl Clone for RatePayoff
§fn clone(&self) -> RatePayoff
fn clone(&self) -> RatePayoff
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 RatePayoff
§impl Debug for RatePayoff
impl Debug for RatePayoff
§impl PartialEq for RatePayoff
impl PartialEq for RatePayoff
impl StructuralPartialEq for RatePayoff
Auto Trait Implementations§
impl Freeze for RatePayoff
impl RefUnwindSafe for RatePayoff
impl Send for RatePayoff
impl Sync for RatePayoff
impl Unpin for RatePayoff
impl UnsafeUnpin for RatePayoff
impl UnwindSafe for RatePayoff
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