var searchIndex = {}; searchIndex["term_grid"] = {"doc":"This library arranges textual data in a grid format suitable for\nfixed-width fonts, using an algorithm to minimise the amount of space\nneeded. For example:","items":[[3,"Cell","term_grid","A **Cell** is the combination of a string and its pre-computed length.",null,null],[12,"contents","","The string to display when this cell gets rendered.",0,null],[12,"width","","The pre-computed length of the string.",0,null],[3,"GridOptions","","The user-assignable options for a grid view that should be passed into\n`Grid::new()`.",null,null],[12,"direction","","Direction that the cells should be written in - either across, or\ndownwards.",1,null],[12,"filling","","Number of spaces to put in between each column of cells.",1,null],[3,"Grid","","Everything needed to format the cells with the grid options.",null,null],[3,"Display","","A displayable representation of a Grid.",null,null],[4,"Direction","","Direction cells should be written in - either across, or downwards.",null,null],[13,"LeftToRight","","Starts at the top left and moves rightwards, going back to the first\ncolumn for a new row - like a typewriter.",2,null],[13,"TopToBottom","","Starts at the top left and moves downwards, going back to the first\nrow for a new column - like how `ls` lists files by default.",2,null],[4,"Filling","","The text to put in between each pair of columns.",null,null],[13,"Spaces","","A certain number of spaces.",3,null],[13,"Text","","The same string, every time.",3,null],[6,"Width","","The width of a cell, in columns.",null,null],[11,"fmt","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"from","","",0,{"inputs":[{"name":"string"}],"output":{"name":"self"}}],[11,"from","","",0,{"inputs":[{"name":"str"}],"output":{"name":"self"}}],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"eq","","",2,null],[11,"fmt","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",4,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"new","","Creates a new grid view with the given options.",4,{"inputs":[{"name":"gridoptions"}],"output":{"name":"grid"}}],[11,"reserve","","Reserves space in the vector for the given number of additional cells\nto be added. (See `vec#reserve`)",4,null],[11,"add","","Adds another cell onto the vector.",4,null],[11,"fit_into_width","","Returns a displayable grid that's been packed to fit into the given\nwidth in the fewest number of rows.",4,null],[11,"fit_into_columns","","Returns a displayable grid with the given number of columns, and no\nmaximum width.",4,null],[11,"fmt","","",5,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"width","","Returns how many columns this display takes up, based on the separator\nwidth and the number and width of the columns.",5,null],[11,"is_complete","","Returns whether this display takes up as many columns as were allotted\nto it.",5,null],[11,"fmt","","",5,null]],"paths":[[3,"Cell"],[3,"GridOptions"],[4,"Direction"],[4,"Filling"],[3,"Grid"],[3,"Display"]]}; initSearch(searchIndex);