Struct Candlestick

Source
pub struct Candlestick<T, O>{ /* private fields */ }

Implementations§

Source§

impl<T, O> Candlestick<T, O>

Source

pub fn new( x: Vec<T>, open: Vec<O>, high: Vec<O>, low: Vec<O>, close: Vec<O>, ) -> Box<Candlestick<T, O>>

Source

pub fn name(self, name: &str) -> Box<Candlestick<T, O>>

Source

pub fn visible(self, visible: bool) -> Box<Candlestick<T, O>>

Source

pub fn show_legend(self, show_legend: bool) -> Box<Candlestick<T, O>>

Source

pub fn legend_group(self, legend_group: &str) -> Box<Candlestick<T, O>>

Source

pub fn opacity(self, opacity: f64) -> Box<Candlestick<T, O>>

Source

pub fn text(self, text: &str) -> Box<Candlestick<T, O>>

Source

pub fn text_array<S: AsRef<str>>(self, text: Vec<S>) -> Box<Candlestick<T, O>>

Source

pub fn hover_text(self, hover_text: &str) -> Box<Candlestick<T, O>>

Source

pub fn hover_text_array<S: AsRef<str>>( self, hover_text: Vec<S>, ) -> Box<Candlestick<T, O>>

Source

pub fn hover_info(self, hover_info: HoverInfo) -> Box<Candlestick<T, O>>

Source

pub fn x_axis(self, axis: &str) -> Box<Candlestick<T, O>>

Source

pub fn y_axis(self, axis: &str) -> Box<Candlestick<T, O>>

Source

pub fn line(self, line: Line) -> Box<Candlestick<T, O>>

Source

pub fn whisker_width(self, whisker_width: f64) -> Box<Candlestick<T, O>>

Source

pub fn increasing(self, increasing: Direction) -> Box<Candlestick<T, O>>

Source

pub fn decreasing(self, decreasing: Direction) -> Box<Candlestick<T, O>>

Source

pub fn hover_label(self, hover_label: Label) -> Box<Candlestick<T, O>>

Source

pub fn x_calendar(self, x_calendar: Calendar) -> Box<Candlestick<T, O>>

Trait Implementations§

Source§

impl<T, O> Debug for Candlestick<T, O>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, O> Default for Candlestick<T, O>

Source§

fn default() -> Candlestick<T, O>

Returns the “default value” for a type. Read more
Source§

impl<T, O> Serialize for Candlestick<T, O>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<X, Y> Trace for Candlestick<X, Y>

Auto Trait Implementations§

§

impl<T, O> Freeze for Candlestick<T, O>

§

impl<T, O> RefUnwindSafe for Candlestick<T, O>

§

impl<T, O> Send for Candlestick<T, O>
where T: Send, O: Send,

§

impl<T, O> Sync for Candlestick<T, O>
where T: Sync, O: Sync,

§

impl<T, O> Unpin for Candlestick<T, O>
where T: Unpin, O: Unpin,

§

impl<T, O> UnwindSafe for Candlestick<T, O>
where T: UnwindSafe, O: 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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V