pub fn fill_rect(&mut self, height: u32, width: u32) -> Option<(u32, u32)> {
        for row in 0..(self.height - height + 1) {
            for col in 0..(self.width - width + 1) {
                if self.fill_rect_at(height, width, row, col) {
                    return Some((row, col));
                }
            }
        }
        None
    }
// returns (row, col) of filled rectangle, or None if there is no room for it
returns (row, col) of filled rectangle, or None if there is no room for it
returns ( row col ) of filled rectangle or None if there is no room for it
pub fn fill_rect(&mut self, height: u32, width: u32) -> Option<(u32, u32)> {
        for row in 0..(self.height - height + 1) {
            for col in 0..(self.width - width + 1) {
                if self.fill_rect_at(height, width, row, col) {
                    return Some((row, col));
                }
            }
        }
        None
    }
pub fn fill_rect ( & mut self , height : u32 , width : u32 ) -> Option < ( u32 , u32 ) > { for row in 0 .. ( self . height - height + 1 ) { for col in 0 .. ( self . width - width + 1 ) { if self . fill_rect_at ( height , width , row , col ) { return Some ( ( row , col ) ) ; } } } None }
returns (row, col) of filled rectangle, or None if there is no room for it
returns ( row col ) of filled rectangle or None if there is no room for it
&mut self
height
u32
width
u32
&mut self
height
u32
width
u32