var searchIndex = {}; searchIndex["prettytable"] = {"doc":"A formatted and aligned table printer written in rust","items":[[3,"Table","prettytable","An owned printable table",null,null],[3,"TableSlice","","A borrowed immutable `Table` slice\nA `TableSlice` is obtained by slicing a `Table` with the `Slice::slice` method.",null,null],[3,"ColumnIter","","Iterator over immutable cells in a column",null,null],[3,"ColumnIterMut","","Iterator over mutable cells in a column",null,null],[0,"cell","","This module contains definition of table/row cells stuff",null,null],[3,"Cell","prettytable::cell","Represent a table cell containing a string.",null,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"new_align","","Create a new `Cell` initialized with content from `string`.\nText alignment in cell is configurable with the `align` argument",0,{"inputs":[{"name":"str"},{"name":"alignment"}],"output":{"name":"cell"}}],[11,"new","","Create a new `Cell` initialized with content from `string`.\nBy default, content is align to `LEFT`",0,{"inputs":[{"name":"str"}],"output":{"name":"cell"}}],[11,"align","","Set text alignment in the cell",0,null],[11,"style","","Add a style attribute to the cell",0,null],[11,"with_style","","Add a style attribute to the cell. Can be chained",0,null],[11,"reset_style","","Remove all style attributes and reset alignment to default (LEFT)",0,null],[11,"style_spec","","Set the cell's style by applying the given specifier string",0,null],[11,"get_height","","Return the height of the cell",0,null],[11,"get_width","","Return the width of the cell",0,null],[11,"get_content","","Return a copy of the full string contained in the cell",0,null],[11,"print","","Print a partial cell to `out`. Since the cell may be multi-lined,\n`idx` is the line index to print. `col_width` is the column width used to\nfill the cells with blanks so it fits in the table.\nIf `ìdx` is higher than this cell's height, it will print empty content",0,null],[11,"print_term","","Apply style then call `print` to print the cell into a terminal",0,null],[11,"from","","",0,{"inputs":[{"name":"t"}],"output":{"name":"cell"}}],[11,"to_string","","",0,null],[11,"default","","Return a cell initialized with a single empty `String`, with LEFT alignment",0,{"inputs":[],"output":{"name":"cell"}}],[0,"row","prettytable","This module contains definition of table rows stuff",null,null],[3,"Row","prettytable::row","Represent a table row made of cells",null,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"new","","Create a new `Row` backed with `cells` vector",1,{"inputs":[{"name":"vec"}],"output":{"name":"row"}}],[11,"empty","","Create an row of length `size`, with empty strings stored",1,{"inputs":[],"output":{"name":"row"}}],[11,"len","","Get the number of cells in this row",1,null],[11,"get_height","","Get the height of this row",1,null],[11,"get_cell_width","","Get the minimum width required by the cell in the column `column`.\nReturn 0 if the cell does not exist in this row",1,null],[11,"get_cell","","Get the cell at index `idx`",1,null],[11,"get_mut_cell","","Get the mutable cell at index `idx`",1,null],[11,"set_cell","","Set the `cell` in the row at the given `column`",1,null],[11,"add_cell","","Append a `cell` at the end of the row",1,null],[11,"insert_cell","","Insert `cell` at position `index`. If `index` is higher than the row lenght,\nthe cell will be appended at the end",1,null],[11,"remove_cell","","Remove the cell at position `index`. Silently skip if this cell does not exist",1,null],[11,"print","","Print the row to `out`, with `separator` as column separator, and `col_width`\nspecifying the width of each columns",1,null],[11,"print_term","","Print the row to terminal `out`, with `separator` as column separator, and `col_width`\nspecifying the width of each columns. Apply style when needed",1,null],[11,"default","","",1,{"inputs":[],"output":{"name":"row"}}],[11,"index","","",1,null],[11,"index_mut","","",1,null],[11,"from_iter","","",1,{"inputs":[{"name":"t"}],"output":{"name":"row"}}],[11,"from","","",1,{"inputs":[{"name":"t"}],"output":{"name":"row"}}],[0,"format","prettytable","Define table formatting utilities",null,null],[3,"LineSeparator","prettytable::format","Contains the character used for printing a line separator",null,null],[3,"TableFormat","","Contains the table formatting rules",null,null],[3,"FormatBuilder","","A builder to create a `Table Format`",null,null],[4,"Alignment","","Alignment for cell's content",null,null],[13,"LEFT","","",2,null],[13,"CENTER","","",2,null],[13,"RIGHT","","",2,null],[4,"LinePosition","","Position of a line separator in a table",null,null],[13,"Top","","",3,null],[13,"Title","","",3,null],[13,"Intern","","",3,null],[13,"Bottom","","",3,null],[4,"ColumnPosition","","Position of a column separator in a row",null,null],[13,"Left","","",4,null],[13,"Intern","","",4,null],[13,"Right","","",4,null],[0,"consts","","Predifined formats. Those constants are lazily evaluated when\nthe corresponding struct is dereferenced",null,null],[3,"FORMAT_DEFAULT","prettytable::format::consts","Default table format",null,null],[3,"FORMAT_NO_TITLE","","Similar to `FORMAT_DEFAULT` but without special separator after title line",null,null],[3,"FORMAT_NO_LINESEP_WITH_TITLE","","With no line separator, but with title separator",null,null],[3,"FORMAT_NO_LINESEP","","With no line or title separator",null,null],[3,"FORMAT_NO_COLSEP","","No column separator",null,null],[3,"FORMAT_CLEAN","","Format for printing a table without any separators (only alignment)",null,null],[3,"FORMAT_BORDERS_ONLY","","Format for a table with only external borders and title separator",null,null],[3,"FORMAT_NO_BORDER","","A table with no external border",null,null],[3,"FORMAT_NO_BORDER_LINE_SEPARATOR","","A table with no external border and no line separation",null,null],[11,"deref","","",5,null],[11,"deref","","",6,null],[11,"deref","","",7,null],[11,"deref","","",8,null],[11,"deref","","",9,null],[11,"deref","","",10,null],[11,"deref","","",11,null],[11,"deref","","",12,null],[11,"deref","","",13,null],[11,"eq","prettytable::format","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"eq","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"eq","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"fmt","","",14,null],[11,"clone","","",14,null],[11,"new","","Create a new line separator instance where `line` is the character used to separate 2 lines\nand `junc` is the one used for junctions between columns and lines",14,{"inputs":[{"name":"char"},{"name":"char"},{"name":"char"},{"name":"char"}],"output":{"name":"lineseparator"}}],[11,"print","","Print a full line separator to `out`. `col_width` is a slice containing the width of each column",14,null],[11,"default","","",14,{"inputs":[],"output":{"name":"self"}}],[11,"fmt","","",15,null],[11,"clone","","",15,null],[11,"new","","Create a new empty TableFormat.",15,{"inputs":[],"output":{"name":"tableformat"}}],[11,"get_padding","","Return a tuple with left and right padding",15,null],[11,"padding","","Set left and right padding",15,null],[11,"column_separator","","Set the character used for internal column separation",15,null],[11,"borders","","Set the character used for table borders",15,null],[11,"separator","","Set a line separator",15,null],[11,"separators","","Set format for multiple kind of line separator",15,null],[11,"print_line_separator","","Print a full line separator to `out`. `col_width` is a slice containing the width of each column",15,null],[11,"print_column_separator","","Print a column separator or a table border",15,null],[11,"default","","",15,{"inputs":[],"output":{"name":"self"}}],[11,"new","","",16,{"inputs":[],"output":{"name":"formatbuilder"}}],[11,"padding","","Set left and right padding",16,null],[11,"column_separator","","Set the character used for internal column separation",16,null],[11,"borders","","Set the character used for table borders",16,null],[11,"separator","","Set a line separator format",16,null],[11,"separators","","Set separator format for multiple kind of line separators",16,null],[11,"build","","Consume this builder and return the generated `TableFormat`",16,null],[8,"Slice","prettytable","Trait implemented by types which can be sliced",null,null],[16,"Output","","Type output after slicing",17,null],[10,"slice","","Get a slice from self",17,null],[11,"fmt","","",18,null],[11,"clone","","",18,null],[11,"fmt","","",19,null],[11,"clone","","",19,null],[11,"get_column_num","","Compute and return the number of column",19,null],[11,"len","","Get the number of rows",19,null],[11,"get_row","","Get an immutable reference to a row",19,null],[11,"column_iter","","Return an iterator over the immutable cells of the column specified by `column`",19,null],[11,"print","","Print the table to `out`",19,null],[11,"print_term","","Print the table to terminal `out`, applying styles when needed",19,null],[11,"printstd","","Print the table to standard output\n# Panic\nPanic if writing to standard output fails",19,null],[11,"new","","Create an empty table",18,{"inputs":[],"output":{"name":"table"}}],[11,"init","","Create a table initialized with `rows`",18,{"inputs":[{"name":"vec"}],"output":{"name":"table"}}],[11,"set_format","","Change the table format. Eg : Separators",18,null],[11,"get_column_num","","Compute and return the number of column",18,null],[11,"len","","Get the number of rows",18,null],[11,"set_titles","","Set the optional title lines",18,null],[11,"unset_titles","","Unset the title line",18,null],[11,"get_mut_row","","Get a mutable reference to a row",18,null],[11,"get_row","","Get an immutable reference to a row",18,null],[11,"add_row","","Append a row in the table, transferring ownership of this row to the table\nand returning a mutable reference to the row",18,null],[11,"add_empty_row","","Append an empty row in the table. Return a mutable reference to this new row.",18,null],[11,"insert_row","","Insert `row` at the position `index`, and return a mutable reference to this row.\nIf index is higher than current numbers of rows, `row` is appended at the end of the table",18,null],[11,"set_element","","Modify a single element in the table",18,null],[11,"remove_row","","Remove the row at position `index`. Silently skip if the row does not exist",18,null],[11,"column_iter","","Return an iterator over the immutable cells of the column specified by `column`",18,null],[11,"column_iter_mut","","Return an iterator over the mutable cells of the column specified by `column`",18,null],[11,"print","","Print the table to `out`",18,null],[11,"print_term","","Print the table to terminal `out`, applying styles when needed",18,null],[11,"printstd","","Print the table to standard output\n# Panic\nPanic if writing to standard output fails",18,null],[11,"index","","",18,null],[11,"index","","",19,null],[11,"index_mut","","",18,null],[11,"fmt","","",18,null],[11,"fmt","","",19,null],[11,"from_iter","","",18,{"inputs":[{"name":"t"}],"output":{"name":"table"}}],[11,"from","","",18,{"inputs":[{"name":"t"}],"output":{"name":"table"}}],[11,"next","","",20,null],[11,"next","","",21,null],[11,"as_ref","","",19,null],[11,"as_ref","","",18,null],[14,"cell!","","This macro simplifies `Cell` creation",null,null],[14,"row!","","This macro simplifies `Row` creation",null,null],[14,"table!","","Create a table filled with some values",null,null],[14,"ptable!","","Create a table with `table!` macro, print it to standard output, then return this table for future usage.",null,null]],"paths":[[3,"Cell"],[3,"Row"],[4,"Alignment"],[4,"LinePosition"],[4,"ColumnPosition"],[3,"FORMAT_DEFAULT"],[3,"FORMAT_NO_TITLE"],[3,"FORMAT_NO_LINESEP_WITH_TITLE"],[3,"FORMAT_NO_LINESEP"],[3,"FORMAT_NO_COLSEP"],[3,"FORMAT_CLEAN"],[3,"FORMAT_BORDERS_ONLY"],[3,"FORMAT_NO_BORDER"],[3,"FORMAT_NO_BORDER_LINE_SEPARATOR"],[3,"LineSeparator"],[3,"TableFormat"],[3,"FormatBuilder"],[8,"Slice"],[3,"Table"],[3,"TableSlice"],[3,"ColumnIter"],[3,"ColumnIterMut"]]}; initSearch(searchIndex);