pub struct StudyValue {
pub formatted: Option<String>,
pub study: String,
pub plot: String,
pub value: Option<f64>,
pub precision: usize,
pub format: StudyFormat,
pub color: Color32,
}Expand description
One visible study plot’s value at the selected bar. Missing or warming-up values stay absent.
Fields§
§formatted: Option<String>Host-formatted text, when supplied by the chart. None uses the units and precision.
study: StringStudy title.
plot: StringPlot title within the study.
value: Option<f64>Finite value at the selected index, or None for a gap.
precision: usizeNumber of decimal places used by the study’s legend.
format: StudyFormatValue units used by this study.
color: Color32Plot colour.
Implementations§
Source§impl StudyValue
impl StudyValue
Trait Implementations§
Source§impl Clone for StudyValue
impl Clone for StudyValue
Source§fn clone(&self) -> StudyValue
fn clone(&self) -> StudyValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StudyValue
impl Debug for StudyValue
Source§impl PartialEq for StudyValue
impl PartialEq for StudyValue
impl StructuralPartialEq for StudyValue
Auto Trait Implementations§
impl Freeze for StudyValue
impl RefUnwindSafe for StudyValue
impl Send for StudyValue
impl Sync for StudyValue
impl Unpin for StudyValue
impl UnsafeUnpin for StudyValue
impl UnwindSafe for StudyValue
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
Mutably borrows from an owned value. Read more
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,
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> ⓘ
Converts
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> ⓘ
Converts
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