Move this up

This commit is contained in:
Benjamin Sago 2017-07-04 08:10:37 +01:00
parent 80d5c2ad6d
commit a32b0dfb47

View File

@ -322,6 +322,26 @@ impl<'a> Render<'a> {
}
}
pub struct Row {
/// Vector of cells to display.
///
/// Most of the rows will be used to display files' metadata, so this will
/// almost always be `Some`, containing a vector of cells. It will only be
/// `None` for a row displaying an attribute or error, neither of which
/// have cells.
pub cells: Option<TableRow>,
/// This file's name, in coloured output. The name is treated separately
/// from the other cells, as it never requires padding.
pub name: TextCell,
/// Information used to determine which symbols to display in a tree.
pub tree: TreeParams,
}
pub struct TableIter<'a> {
table: Table<'a>,
tree_trunk: TreeTrunk,
@ -361,25 +381,6 @@ impl<'a> Iterator for TableIter<'a> {
}
}
pub struct Row {
/// Vector of cells to display.
///
/// Most of the rows will be used to display files' metadata, so this will
/// almost always be `Some`, containing a vector of cells. It will only be
/// `None` for a row displaying an attribute or error, neither of which
/// have cells.
pub cells: Option<TableRow>,
/// This file's name, in coloured output. The name is treated separately
/// from the other cells, as it never requires padding.
pub name: TextCell,
/// Information used to determine which symbols to display in a tree.
pub tree: TreeParams,
}
pub struct Iter<'a> {
tree_trunk: TreeTrunk,