pub fn height(mut self, height: u8) -> Grid {

        // Set the height
        self.height_ = height;

        // Re-configure the list of rows based on the height given, calculating
        // the new row-size percent
        let percent: u8 = 100 / self.height_;
        self.rows = Vec::new();
        for _ in 0..self.height_ { self.rows.push(GridRow(percent, false)) }
        self
    }
/// Set the height of the grid, in rows
Set the height of the grid, in rows
Set the height of the grid in rows
pub fn height(mut self, height: u8) -> Grid {
        // Set the height
        self.height_ = height;
        // Re-configure the list of rows based on the height given, calculating
        // the new row-size percent
        let percent: u8 = 100 / self.height_;
        self.rows = Vec::new();
        for _ in 0..self.height_ { self.rows.push(GridRow(percent, false)) }
        self
    }
pub fn height ( mut self , height : u8 ) -> Grid { // Set the height self . height_ = height ; // Re-configure the list of rows based on the height given, calculating // the new row-size percent let percent : u8 = 100 / self . height_ ; self . rows = Vec :: new ( ) ; for _ in 0 .. self . height_ { self . rows . push ( GridRow ( percent , false ) ) } self }
Set the height of the grid, in rows
Set the height of the grid in rows
mut self
height
u8
mut self
height
u8