pub struct ZigZagPivot {
pub bar_index: usize,
pub price: f64,
pub is_high: bool,
}Expand description
One swing extreme in source-bar order. The last pivot is provisional and can move.
Fields§
§bar_index: usizeIndex in the bars passed to Indicator::calculate, including skipped bars.
price: f64Price of the swing extreme.
is_high: boolWhether this is a high; highs and lows alternate.
Trait Implementations§
Source§impl Clone for ZigZagPivot
impl Clone for ZigZagPivot
Source§fn clone(&self) -> ZigZagPivot
fn clone(&self) -> ZigZagPivot
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 ZigZagPivot
Source§impl Debug for ZigZagPivot
impl Debug for ZigZagPivot
Source§impl PartialEq for ZigZagPivot
impl PartialEq for ZigZagPivot
impl StructuralPartialEq for ZigZagPivot
Auto Trait Implementations§
impl Freeze for ZigZagPivot
impl RefUnwindSafe for ZigZagPivot
impl Send for ZigZagPivot
impl Sync for ZigZagPivot
impl Unpin for ZigZagPivot
impl UnsafeUnpin for ZigZagPivot
impl UnwindSafe for ZigZagPivot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more