pub struct OutputSpec {
pub name: &'static str,
pub kind: OutputKind,
pub color: Option<Rgba>,
pub shift: i32,
pub fill_to: Option<(usize, BandOptions)>,
}Expand description
One output of an indicator.
Fields§
§name: &'static strShort name, e.g. "signal".
kind: OutputKindHow it is drawn.
color: Option<Rgba>Default color; None picks one from the chart’s palette.
shift: i32Display shift in bars (SeriesOptions::shift): positive values are
drawn later (Ichimoku’s leading spans), negative ones earlier.
fill_to: Option<(usize, BandOptions)>Fill from this output to output .0 (a band), e.g. between
Bollinger’s upper and lower lines; see
Chart::indicator_bands.
Implementations§
Trait Implementations§
Source§impl Clone for OutputSpec
impl Clone for OutputSpec
impl Copy for OutputSpec
Source§impl Debug for OutputSpec
impl Debug for OutputSpec
Source§impl PartialEq for OutputSpec
impl PartialEq for OutputSpec
impl StructuralPartialEq for OutputSpec
Auto Trait Implementations§
impl Forget for OutputSpec
impl Freeze for OutputSpec
impl Move for OutputSpec
impl RefUnwindSafe for OutputSpec
impl Send for OutputSpec
impl Sync for OutputSpec
impl Unpin for OutputSpec
impl UnsafeUnpin for OutputSpec
impl UnwindSafe for OutputSpec
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