pub fn write(&self, to_draw: Vec<Draw>) {
        // Only draw if there are any drawing commands
        if to_draw.len() != 0 {
            let wakers = self.core.sync(move |core| core.write(to_draw));
            wakers.into_iter().for_each(|waker| waker.wake());
        }
    }
///
/// Sends some new drawing commands to this canvas
///
Sends some new drawing commands to this canvas
Sends some new drawing commands to this canvas
pub fn write(&self, to_draw: Vec<Draw>) {
        // Only draw if there are any drawing commands
        if to_draw.len() != 0 {
            let wakers = self.core.sync(move |core| core.write(to_draw));
            wakers.into_iter().for_each(|waker| waker.wake());
        }
    }
pub fn write ( & self , to_draw : Vec < Draw > ) { // Only draw if there are any drawing commands if to_draw . len ( ) != 0 { let wakers = self . core . sync ( move | core | core . write ( to_draw ) ) ; wakers . into_iter ( ) . for_each ( | waker | waker . wake ( ) ) ; } }
Sends some new drawing commands to this canvas
Sends some new drawing commands to this canvas
&self
to_draw
Vec<Draw>