pub trait Points {
// Required methods
fn len(&self) -> usize;
fn x(&self, index: usize) -> f64;
fn y(&self, index: usize) -> f64;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A series of points, in ascending x (a chart finds the visible ones by binary search):
a line, or the bars of a bar series. A y that is not finite is a gap.
Points out of order do not break anything, but they draw wrong and cost more: each step back restarts the line, and the step forward after it is drawn across every column it spans.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".