criterion_plot::candlestick

Struct Candlesticks

Source
pub struct Candlesticks<X, WM, BM, BH, WH> {
    pub x: X,
    pub whisker_min: WM,
    pub box_min: BM,
    pub box_high: BH,
    pub whisker_high: WH,
}
Expand description

A candlestick consists of a box and two whiskers that extend beyond the box

Fields§

§x: X

X coordinate of the candlestick

§whisker_min: WM

Y coordinate of the end point of the bottom whisker

§box_min: BM

Y coordinate of the bottom of the box

§box_high: BH

Y coordinate of the top of the box

§whisker_high: WH

Y coordinate of the end point of the top whisker

Trait Implementations§

Source§

impl<X, WM, BM, BH, WH> Plot<Candlesticks<X, WM, BM, BH, WH>> for Figure
where BH: IntoIterator, BH::Item: Data, BM: IntoIterator, BM::Item: Data, WH: IntoIterator, WH::Item: Data, WM: IntoIterator, WM::Item: Data, X: IntoIterator, X::Item: Data,

Source§

type Properties = Properties

The properties associated to the plot
Source§

fn plot<F>( &mut self, candlesticks: Candlesticks<X, WM, BM, BH, WH>, configure: F, ) -> &mut Figure
where F: FnOnce(&mut Properties) -> &mut Properties,

Plots some data with some configuration

Auto Trait Implementations§

§

impl<X, WM, BM, BH, WH> Freeze for Candlesticks<X, WM, BM, BH, WH>
where X: Freeze, WM: Freeze, BM: Freeze, BH: Freeze, WH: Freeze,

§

impl<X, WM, BM, BH, WH> RefUnwindSafe for Candlesticks<X, WM, BM, BH, WH>

§

impl<X, WM, BM, BH, WH> Send for Candlesticks<X, WM, BM, BH, WH>
where X: Send, WM: Send, BM: Send, BH: Send, WH: Send,

§

impl<X, WM, BM, BH, WH> Sync for Candlesticks<X, WM, BM, BH, WH>
where X: Sync, WM: Sync, BM: Sync, BH: Sync, WH: Sync,

§

impl<X, WM, BM, BH, WH> Unpin for Candlesticks<X, WM, BM, BH, WH>
where X: Unpin, WM: Unpin, BM: Unpin, BH: Unpin, WH: Unpin,

§

impl<X, WM, BM, BH, WH> UnwindSafe for Candlesticks<X, WM, BM, BH, WH>
where X: UnwindSafe, WM: UnwindSafe, BM: UnwindSafe, BH: UnwindSafe, WH: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.