pub struct SeriesPoint {
pub x: String,
pub y_num: i64,
pub y_denom: i64,
}Expand description
One x/y datum. y is carried as a num/denom pair so the exact
Rational64 crosses the wire without float drift; each renderer
converts to f64 for display.
Fields§
§x: String§y_num: i64§y_denom: i64Implementations§
Trait Implementations§
Source§impl Clone for SeriesPoint
impl Clone for SeriesPoint
Source§impl Debug for SeriesPoint
impl Debug for SeriesPoint
Source§impl<'de> Deserialize<'de> for SeriesPoint
impl<'de> Deserialize<'de> for SeriesPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SeriesPoint
Source§impl PartialEq for SeriesPoint
impl PartialEq for SeriesPoint
Source§impl Serialize for SeriesPoint
impl Serialize for SeriesPoint
impl StructuralPartialEq for SeriesPoint
Auto Trait Implementations§
impl Freeze for SeriesPoint
impl RefUnwindSafe for SeriesPoint
impl Send for SeriesPoint
impl Sync for SeriesPoint
impl Unpin for SeriesPoint
impl UnsafeUnpin for SeriesPoint
impl UnwindSafe for SeriesPoint
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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