pub struct StudyZone {
pub bars: Range<usize>,
pub top: f64,
pub bottom: f64,
pub plot: usize,
}Expand description
A price band between two source bars, stored once instead of as a value on every bar.
Fields§
§bars: Range<usize>Source bars the band spans, from the centre of the first to the centre of the last, or from edge to edge when its study’s zones cover whole bars.
top: f64Upper price.
bottom: f64Lower price.
plot: usizeOutput whose colour, stroke width and visibility apply to this zone: its edges in that colour and its band at 15% opacity.
Trait Implementations§
impl StructuralPartialEq for StudyZone
Auto Trait Implementations§
impl Freeze for StudyZone
impl RefUnwindSafe for StudyZone
impl Send for StudyZone
impl Sync for StudyZone
impl Unpin for StudyZone
impl UnsafeUnpin for StudyZone
impl UnwindSafe for StudyZone
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