pub enum BarrierType {
DownAndOut,
DownAndIn,
UpAndOut,
UpAndIn,
}Expand description
Barrier option type (single barrier, European exercise).
Variants§
DownAndOut
Knocked out if spot falls to or below the barrier.
DownAndIn
Knocked in (activated) if spot falls to or below the barrier.
UpAndOut
Knocked out if spot rises to or above the barrier.
UpAndIn
Knocked in (activated) if spot rises to or above the barrier.
Trait Implementations§
Source§impl Clone for BarrierType
impl Clone for BarrierType
Source§fn clone(&self) -> BarrierType
fn clone(&self) -> BarrierType
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 BarrierType
Source§impl Debug for BarrierType
impl Debug for BarrierType
impl Eq for BarrierType
Source§impl PartialEq for BarrierType
impl PartialEq for BarrierType
impl StructuralPartialEq for BarrierType
Auto Trait Implementations§
impl Freeze for BarrierType
impl RefUnwindSafe for BarrierType
impl Send for BarrierType
impl Sync for BarrierType
impl Unpin for BarrierType
impl UnsafeUnpin for BarrierType
impl UnwindSafe for BarrierType
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