pub enum SeriesGraph {
Plot(Plot),
BackgroundColors(BackgroundColor),
Fill(Fill),
PlotArrow(PlotArrow),
PlotBar(PlotBar),
PlotCandle(PlotCandle),
PlotChar(PlotChar),
PlotShape(PlotShape),
}Expand description
A per-series visual output (e.g. plot or bar colors).
Variants§
Plot(Plot)
A standard plot output.
BackgroundColors(BackgroundColor)
Background color output.
Fill(Fill)
Fill output between two series/hline anchors.
PlotArrow(PlotArrow)
Plotarrow output.
PlotBar(PlotBar)
Plotbar output.
PlotCandle(PlotCandle)
Plotcandle output.
PlotChar(PlotChar)
Plotchar output.
PlotShape(PlotShape)
Plotshape output.
Implementations§
Source§impl SeriesGraph
impl SeriesGraph
Sourcepub fn as_background_color(&self) -> Option<&BackgroundColor>
pub fn as_background_color(&self) -> Option<&BackgroundColor>
Returns the underlying BackgroundColor if this is a background color
series.
Sourcepub fn as_plot_arrow(&self) -> Option<&PlotArrow>
pub fn as_plot_arrow(&self) -> Option<&PlotArrow>
Returns the underlying PlotArrow if this is a plotarrow series.
Sourcepub fn as_plot_bar(&self) -> Option<&PlotBar>
pub fn as_plot_bar(&self) -> Option<&PlotBar>
Returns the underlying PlotBar if this is a plotbar series.
Sourcepub fn as_plot_candle(&self) -> Option<&PlotCandle>
pub fn as_plot_candle(&self) -> Option<&PlotCandle>
Returns the underlying PlotCandle if this is a plotcandle series.
Sourcepub fn as_plot_char(&self) -> Option<&PlotChar>
pub fn as_plot_char(&self) -> Option<&PlotChar>
Returns the underlying PlotChar if this is a plotchar series.
Sourcepub fn as_plot_shape(&self) -> Option<&PlotShape>
pub fn as_plot_shape(&self) -> Option<&PlotShape>
Returns the underlying PlotShape if this is a plotshape series.
Sourcepub fn pane_flags(&self) -> Option<(bool, PlotDisplay)>
pub fn pane_flags(&self) -> Option<(bool, PlotDisplay)>
Returns (force_overlay, display) for series graphs that have these
fields, or None for variants that don’t drive pane layout (e.g.
Fill).
Sourcepub fn is_editable(&self) -> bool
pub fn is_editable(&self) -> bool
Whether this series graph is user-editable (can be configured in the settings dialog).
Trait Implementations§
Source§impl Clone for SeriesGraph
impl Clone for SeriesGraph
Source§fn clone(&self) -> SeriesGraph
fn clone(&self) -> SeriesGraph
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SeriesGraph
impl Debug for SeriesGraph
Source§impl<'de> Deserialize<'de> for SeriesGraph
impl<'de> Deserialize<'de> for SeriesGraph
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>,
Auto Trait Implementations§
impl Freeze for SeriesGraph
impl RefUnwindSafe for SeriesGraph
impl Send for SeriesGraph
impl Sync for SeriesGraph
impl Unpin for SeriesGraph
impl UnwindSafe for SeriesGraph
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
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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.