mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +00:00
Add Copy and Clone for Endianness
This commit is contained in:
1 parent
816779e968
commit
57d18482ba
1 file changed
+2
@@ -21,6 +21,7 @@ const COLOR_ASCII_OTHER: &[u8] = colors::Green::ANSI_FG.as_bytes();
|
|||||||
const COLOR_NONASCII: &[u8] = colors::Yellow::ANSI_FG.as_bytes();
|
const COLOR_NONASCII: &[u8] = colors::Yellow::ANSI_FG.as_bytes();
|
||||||
const COLOR_RESET: &[u8] = colors::Default::ANSI_FG.as_bytes();
|
const COLOR_RESET: &[u8] = colors::Default::ANSI_FG.as_bytes();
|
||||||
|
|
||||||
|
#[derive(Copy, Clone)]
|
||||||
pub enum ByteCategory {
|
pub enum ByteCategory {
|
||||||
Null,
|
Null,
|
||||||
AsciiPrintable,
|
AsciiPrintable,
|
||||||
@@ -29,6 +30,7 @@ pub enum ByteCategory {
|
|||||||
NonAscii,
|
NonAscii,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone)]
|
||||||
pub enum Endianness {
|
pub enum Endianness {
|
||||||
Little,
|
Little,
|
||||||
Big,
|
Big,
|
||||||
|
|||||||
Reference in new issue
Block a user