pub fn render(&mut self) -> &[bool; 120 * 100] {
        self.framebuffer.iter_mut().for_each(|m| *m = false);

        for exa in self.exas.iter() {
            for (x, y) in exa.borrow().pixels() {
                self.framebuffer[(x + (y * 120)) as usize] = true;
            }
        }
        &self.framebuffer
    }
// Update framebuffer based on current sprite info
// of running EXAs, then return ref to framebuffer.
Update framebuffer based on current sprite info
of running EXAs, then return ref to framebuffer.
Update framebuffer based on current sprite info of running EXAs then return ref to framebuffer .
pub fn render(&mut self) -> &[bool; 120 * 100] {
        self.framebuffer.iter_mut().for_each(|m| *m = false);
        for exa in self.exas.iter() {
            for (x, y) in exa.borrow().pixels() {
                self.framebuffer[(x + (y * 120)) as usize] = true;
            }
        }
        &self.framebuffer
    }
pub fn render ( & mut self ) -> & [ bool ; 120 * 100 ] { self . framebuffer . iter_mut ( ) . for_each ( | m | * m = false ) ; for exa in self . exas . iter ( ) { for ( x , y ) in exa . borrow ( ) . pixels ( ) { self . framebuffer [ ( x + ( y * 120 ) ) as usize ] = true ; } } & self . framebuffer }
Update framebuffer based on current sprite info
of running EXAs, then return ref to framebuffer.
Update framebuffer based on current sprite info of running EXAs then return ref to framebuffer .
&mut self
&mut self