summaryrefslogtreecommitdiffstats
path: root/src/hex
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-08-02 21:05:03 +0200
committerCanop <cano.petrole@gmail.com>2020-08-02 21:05:03 +0200
commit744bcd06de725fa553987be7149331f7ce2bdc4a (patch)
tree31b5727c7e20f5ab333db869bdcc4475747a9f81 /src/hex
parentb30e8affeb866e72581e92152e0f94e55cac6793 (diff)
show an image if preview if possible (WIP)
Diffstat (limited to 'src/hex')
-rw-r--r--src/hex/hex_view.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hex/hex_view.rs b/src/hex/hex_view.rs
index 35a3c7a..d2decbf 100644
--- a/src/hex/hex_view.rs
+++ b/src/hex/hex_view.rs
@@ -28,6 +28,7 @@ pub struct HexLine {
pub bytes: Vec<u8>, // from 1 to 16 bytes
}
+/// a preview showing the content of a file in hexa
pub struct HexView {
path: PathBuf,
len: usize,