1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
mod preview;
mod preview_state;
mod zero_len_file_view;
pub use {
preview::Preview,
preview_state::PreviewState,
zero_len_file_view::ZeroLenFileView,
};
#[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,
}