#[non_exhaustive]pub enum PlotType {
Line,
Histogram,
Circles,
StepLine,
Columns,
Crosses,
Area,
TriangleUp,
TriangleDown,
BarColor,
BackgroundColor,
}Expand description
Geometry for one output line.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Line
Connected values, broken at missing bars.
Histogram
Bars from zero to the output value.
Circles
A circle at each defined value.
StepLine
Horizontal segments followed by a vertical change at the next bar.
Columns
Columns from zero, at 80% of the bar pitch.
Crosses
A plus at each defined value.
Area
Filled area between the output and zero.
TriangleUp
An upward triangle centred on each defined value.
TriangleDown
A downward triangle centred on each defined value.
BarColor
Repaint the source price bars using this plot’s per-bar colour.
BackgroundColor
Colour the full pane height at each defined bar.
Implementations§
Source§impl PlotType
impl PlotType
Sourcepub fn incompatibility(
self,
overlay: bool,
price_scale: bool,
) -> Option<&'static str>
pub fn incompatibility( self, overlay: bool, price_scale: bool, ) -> Option<&'static str>
Why a plot of this type cannot be drawn for a study, or None when it can.
overlay is whether the study is drawn on the price chart, and price_scale whether it
shares the price scale there, which a volume study does not.
Trait Implementations§
impl Copy for PlotType
Source§impl<'de> Deserialize<'de> for PlotType
impl<'de> Deserialize<'de> for PlotType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlotType
impl StructuralPartialEq for PlotType
Auto Trait Implementations§
impl Freeze for PlotType
impl RefUnwindSafe for PlotType
impl Send for PlotType
impl Sync for PlotType
impl Unpin for PlotType
impl UnsafeUnpin for PlotType
impl UnwindSafe for PlotType
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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