Paint

Trait Paint 

Source
pub trait Paint: Send + 'static {
    // Required method
    fn paint<T>(&self, canvas: &mut Canvas, x: T, y: T) -> Result<(), RsilleErr>
       where T: Into<f64>;
}
Expand description

Implement this for painting on Canvas

Required Methods§

Source

fn paint<T>(&self, canvas: &mut Canvas, x: T, y: T) -> Result<(), RsilleErr>
where T: Into<f64>,

Paint the object on the canvas

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: Paint + ?Sized> Paint for Box<T>

Source§

fn paint<N>(&self, canvas: &mut Canvas, x: N, y: N) -> Result<(), RsilleErr>
where N: Into<f64>,

Implementors§