Struct Barrier
pub struct Barrier {
pub kind: BarrierKind,
pub level: f64,
pub rebate: f64,
}Expand description
A single barrier, monitored continuously from today to expiry.
Fields§
§kind: BarrierKindWhere it sits and what touching it does.
level: f64The barrier level, a price per share.
rebate: f64Paid per share at expiry by a knock-in that never knocked in, or on the hit by a knock-out.
Trait Implementations§
impl Copy for Barrier
impl StructuralPartialEq for Barrier
Auto Trait Implementations§
impl Freeze for Barrier
impl RefUnwindSafe for Barrier
impl Send for Barrier
impl Sync for Barrier
impl Unpin for Barrier
impl UnsafeUnpin for Barrier
impl UnwindSafe for Barrier
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