pub struct RangeBar {
pub open: f64,
pub close: f64,
pub direction: i8,
}Expand description
One completed range bar.
Fields§
§open: f64Price at the bar’s origin edge.
close: f64Price at the bar’s far edge (open ± range).
direction: i8+1 for an up bar, -1 for a down bar.
Trait Implementations§
impl Copy for RangeBar
impl StructuralPartialEq for RangeBar
Auto Trait Implementations§
impl Freeze for RangeBar
impl RefUnwindSafe for RangeBar
impl Send for RangeBar
impl Sync for RangeBar
impl Unpin for RangeBar
impl UnsafeUnpin for RangeBar
impl UnwindSafe for RangeBar
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