[−][src]Struct plotters::element::CandleStick
The candelstick data point element
Methods
impl<X: Clone, Y: PartialOrd> CandleStick<X, Y>
[src]
pub fn new<GS: Into<ShapeStyle>, LS: Into<ShapeStyle>>(
x: X,
open: Y,
high: Y,
low: Y,
close: Y,
gain_style: GS,
loss_style: LS,
width: u32
) -> Self
[src]
x: X,
open: Y,
high: Y,
low: Y,
close: Y,
gain_style: GS,
loss_style: LS,
width: u32
) -> Self
Create a new candlestick element, which requires the Y coordinate can be compared
Trait Implementations
impl<'a, X: 'a, Y: PartialOrd + 'a> PointCollection<'a, (X, Y)> for &'a CandleStick<X, Y>
[src]
type Borrow = &'a (X, Y)
The item in point iterator
type IntoIter = &'a [(X, Y)]
The point iterator
fn point_iter(self) -> &'a [(X, Y)]
[src]
impl<X, Y: PartialOrd, DB: DrawingBackend> Drawable<DB> for CandleStick<X, Y>
[src]
fn draw<I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
Auto Trait Implementations
impl<X, Y> Send for CandleStick<X, Y> where
X: Send,
Y: Send,
X: Send,
Y: Send,
impl<X, Y> Sync for CandleStick<X, Y> where
X: Sync,
Y: Sync,
X: Sync,
Y: Sync,
Blanket Implementations
impl<'b, T, DB, Coord> IntoDynElement for T where
Coord: Clone,
DB: DrawingBackend,
T: Drawable<DB> + 'b,
&'a T: PointCollection<'a, Coord>,
[src]
Coord: Clone,
DB: DrawingBackend,
T: Drawable<DB> + 'b,
&'a T: PointCollection<'a, Coord>,
fn into_dyn(Self) -> DynElement<'b, DB, Coord>
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,