Jelajahi Sumber

Move this up

Benjamin Sago 8 tahun lalu
induk
melakukan
a32b0dfb47
1 mengubah file dengan 20 tambahan dan 19 penghapusan
  1. 20 19
      src/output/details.rs

+ 20 - 19
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<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,