pub struct SparklineWidget {
pub data: VecDeque<f64>,
pub label: String,
pub baseline: Option<f64>,
pub auto_scale: bool,
}Expand description
Sparkline widget for showing history
Fields§
§data: VecDeque<f64>Data points (0.0-1.0 normalized or raw values)
label: StringWidget label
baseline: Option<f64>Optional baseline to show
auto_scale: boolAuto-scale to data range
Implementations§
Trait Implementations§
Source§impl Clone for SparklineWidget
impl Clone for SparklineWidget
Source§fn clone(&self) -> SparklineWidget
fn clone(&self) -> SparklineWidget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SparklineWidget
impl RefUnwindSafe for SparklineWidget
impl Send for SparklineWidget
impl Sync for SparklineWidget
impl Unpin for SparklineWidget
impl UnsafeUnpin for SparklineWidget
impl UnwindSafe for SparklineWidget
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