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

        // Set the width
        self.width_ = width;

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