pub struct KagiBar {
pub start: f64,
pub end: f64,
pub direction: i8,
}Expand description
One completed Kagi line segment (the vertical run between two reversals).
Fields§
§start: f64Price where the segment began (the previous reversal point).
end: f64Extreme price the segment reached before reversing.
direction: i8+1 for a rising segment, -1 for a falling segment.
Trait Implementations§
impl Copy for KagiBar
impl StructuralPartialEq for KagiBar
Auto Trait Implementations§
impl Freeze for KagiBar
impl RefUnwindSafe for KagiBar
impl Send for KagiBar
impl Sync for KagiBar
impl Unpin for KagiBar
impl UnsafeUnpin for KagiBar
impl UnwindSafe for KagiBar
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
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