Skip to main content

Plot

Trait Plot 

Source
pub trait Plot: IntoElement {
    // Required method
    fn paint(
        &mut self,
        bounds: Bounds<Pixels>,
        window: &mut Window,
        cx: &mut App,
    );
}

Required Methods§

Source

fn paint(&mut self, bounds: Bounds<Pixels>, window: &mut Window, cx: &mut App)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, B, V> Plot for BarChart<T, B, V>
where B: PartialEq + Into<SharedString> + 'static, V: Copy + PartialOrd + Num + ToPrimitive + Sealed + 'static,

Source§

impl<T, X, Y> Plot for AreaChart<T, X, Y>
where X: Clone + PartialEq + Into<SharedString> + 'static, Y: Clone + Copy + PartialOrd + Num + ToPrimitive + Sealed + 'static,

Source§

impl<T, X, Y> Plot for CandlestickChart<T, X, Y>
where X: PartialEq + Into<SharedString> + 'static, Y: Copy + PartialOrd + Num + ToPrimitive + Sealed + 'static,

Source§

impl<T, X, Y> Plot for LineChart<T, X, Y>
where X: PartialEq + Into<SharedString> + 'static, Y: Copy + PartialOrd + Num + ToPrimitive + Sealed + 'static,

Source§

impl<T> Plot for PieChart<T>