From a32b0dfb474f6eedeb64532d29818e4bb7434926 Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Tue, 4 Jul 2017 08:10:37 +0100 Subject: [PATCH] Move this up --- src/output/details.rs | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/output/details.rs b/src/output/details.rs index e574656..0078eff 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -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, + + /// 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, - - /// 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,