Enum ShiftType
pub enum ShiftType {
Relative,
Absolute,
}Expand description
Whether a leg’s amount moves an input relatively, x·(1 + s), or
absolutely, x + s.
A leg may leave it unset, and then each input moves the way it always has: a curve absolutely in its quote, an FX spot and a vol relatively. Naming it asks for the other where one exists — a vol moved in vol points — and a type an input cannot take is refused rather than invented.
Variants§
Implementations§
Trait Implementations§
impl Copy for ShiftType
impl Eq for ShiftType
impl StructuralPartialEq for ShiftType
Auto Trait Implementations§
impl Freeze for ShiftType
impl RefUnwindSafe for ShiftType
impl Send for ShiftType
impl Sync for ShiftType
impl Unpin for ShiftType
impl UnsafeUnpin for ShiftType
impl UnwindSafe for ShiftType
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