pub trait PriceIterable {
type Item: OHLCV;
// Required method
fn to_vec(&self) -> impl Iterator<Item = &Self::Item> + '_;
// Provided methods
fn closes(&self) -> impl Iterator<Item = f64> + '_ { ... }
fn opens(&self) -> impl Iterator<Item = f64> + '_ { ... }
fn highs(&self) -> impl Iterator<Item = f64> + '_ { ... }
fn lows(&self) -> impl Iterator<Item = f64> + '_ { ... }
fn volumes(&self) -> impl Iterator<Item = f64> + '_ { ... }
fn datetimes(&self) -> impl Iterator<Item = DateTime<Utc>> + '_ { ... }
fn timestamps(&self) -> impl Iterator<Item = i64> + '_ { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn closes(&self) -> impl Iterator<Item = f64> + '_
fn opens(&self) -> impl Iterator<Item = f64> + '_
fn highs(&self) -> impl Iterator<Item = f64> + '_
fn lows(&self) -> impl Iterator<Item = f64> + '_
fn volumes(&self) -> impl Iterator<Item = f64> + '_
fn datetimes(&self) -> impl Iterator<Item = DateTime<Utc>> + '_
fn timestamps(&self) -> impl Iterator<Item = i64> + '_
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".