mod.rs 717 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. use output::file_name::FileStyle;
  2. use style::Colours;
  3. pub use self::cell::{TextCell, TextCellContents, DisplayWidth};
  4. pub use self::escape::escape;
  5. pub mod details;
  6. pub mod file_name;
  7. pub mod grid_details;
  8. pub mod grid;
  9. pub mod icons;
  10. pub mod lines;
  11. pub mod render;
  12. pub mod table;
  13. pub mod time;
  14. mod cell;
  15. mod escape;
  16. mod tree;
  17. /// The **view** contains all information about how to format output.
  18. #[derive(Debug)]
  19. pub struct View {
  20. pub mode: Mode,
  21. pub colours: Colours,
  22. pub style: FileStyle,
  23. }
  24. /// The **mode** is the “type” of output.
  25. #[derive(Debug)]
  26. pub enum Mode {
  27. Grid(grid::Options),
  28. Details(details::Options),
  29. GridDetails(grid_details::Options),
  30. Lines(lines::Options),
  31. }