Coordinate
struct · ferroui-livecharts · v0.5.0
struct Coordinate
A mapped chart datum. The primary dimension is normally Y, secondary X.
Members
primary_valuesecondary_valuetertiary_valuequaternary_valuequinary_valuesenary_valuepoint_erroris_emptyEMPTYfrom_valuesnewweightedfinancialbox_valuerangewith_erroris_finite
primary_value
primary_value: f64
secondary_value
secondary_value: f64
tertiary_value
tertiary_value: f64
quaternary_value
quaternary_value: f64
quinary_value
quinary_value: f64
senary_value
senary_value: f64
point_error
point_error: super::Error
is_empty
is_empty: bool
EMPTY
const EMPTY: Self
from_values
const fn from_values(primary: f64, secondary: f64, tertiary: f64, quaternary: f64, quinary: f64, senary: f64, error: Error) -> Self
new
const fn new(x: f64, y: f64) -> Self
weighted
const fn weighted(x: f64, y: f64, weight: f64) -> Self
financial
const fn financial(x: f64, high: f64, open: f64, close: f64, low: f64) -> Self
box_value
const fn box_value(x: f64, maximum: f64, third_quartile: f64, first_quartile: f64, minimum: f64, median: f64) -> Self
range
const fn range(x: f64, high: f64, low: f64) -> Self
with_error
const fn with_error(self: Self, error: Error) -> Self
is_finite
fn is_finite(self: Self) -> bool
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqDefaultDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.