[][src]Struct plotters::element::CandleStick

pub struct CandleStick<'a, X, Y: PartialOrd> { /* fields omitted */ }

The candelstick data point element

Methods

impl<'a, X: Clone, Y: PartialOrd> CandleStick<'a, X, Y>[src]

pub fn new<GS: Into<ShapeStyle<'a>>, LS: Into<ShapeStyle<'a>>>(
    x: X,
    open: Y,
    high: Y,
    low: Y,
    close: Y,
    gain_style: GS,
    loss_style: GS,
    width: u32
) -> Self
[src]

Create a new candlestick element, which requires the Y coordinate can be compared

Trait Implementations

impl<'b, 'a, X: 'a, Y: PartialOrd + 'a> PointCollection<'a, (X, Y)> for &'a CandleStick<'b, X, Y>[src]

type Borrow = &'a (X, Y)

The item in point iterator

type IntoIter = &'a [(X, Y)]

The point iterator

impl<'a, X: 'a, Y: 'a + PartialOrd> Drawable for CandleStick<'a, X, Y>[src]

Auto Trait Implementations

impl<'a, X, Y> !Send for CandleStick<'a, X, Y>

impl<'a, X, Y> !Sync for CandleStick<'a, X, Y>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.