1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
mod preview; mod preview_state; pub use { preview::Preview, preview_state::PreviewState, }; #[derive(Debug, Clone, Copy, PartialEq)] pub enum PreviewMode { /// image Image, /// show the content as text, with syntax coloring if /// it makes sens. Fails if the file isn't in UTF8 Text, /// show the content of the file as hex Hex, }