pub trait Candles {
// Required methods
fn len(&self) -> usize;
fn x(&self, index: usize) -> f64;
fn candle(&self, index: usize) -> Candle;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A series of candlesticks in ascending x (each candle’s period, by its start or its
middle: the chart centers a candle on its x).
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".