#[non_exhaustive]pub struct StudyTemplateSet {
pub studies: Vec<StudyTemplate>,
pub price_pane: Vec<usize>,
pub panes: Vec<Vec<usize>>,
}Expand description
The studies of a chart, with the links between them and the panes they share, as
Chart::study_template_set saves them and Chart::apply_study_template_set applies them.
An input that reads another study’s plot (StudySource::Study) names that study by its
position in studies, and a position past the end names no study. A
position appears at most once in price_pane and
panes together; a study listed in neither is placed where
Chart::add_indicator places a new study. Legend captions, the price auto-scale choice,
pane heights and the place of the price pane among the panes are not kept.
A list of study templates also reads as a set: its sources name positions in the list and every study takes its default place.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.studies: Vec<StudyTemplate>The studies, in the order they were added to the chart.
price_pane: Vec<usize>Positions in studies of the studies drawn on the price pane.
panes: Vec<Vec<usize>>The other panes that hold studies of the set, from top to bottom, each with the
positions in studies of its studies in legend order.
Trait Implementations§
Source§impl Clone for StudyTemplateSet
impl Clone for StudyTemplateSet
Source§fn clone(&self) -> StudyTemplateSet
fn clone(&self) -> StudyTemplateSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StudyTemplateSet
impl Debug for StudyTemplateSet
Source§impl Default for StudyTemplateSet
impl Default for StudyTemplateSet
Source§fn default() -> StudyTemplateSet
fn default() -> StudyTemplateSet
Source§impl<'de> Deserialize<'de> for StudyTemplateSet
impl<'de> Deserialize<'de> for StudyTemplateSet
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Auto Trait Implementations§
impl Freeze for StudyTemplateSet
impl RefUnwindSafe for StudyTemplateSet
impl Send for StudyTemplateSet
impl Sync for StudyTemplateSet
impl Unpin for StudyTemplateSet
impl UnsafeUnpin for StudyTemplateSet
impl UnwindSafe for StudyTemplateSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more