Add Copy and Clone for Endianness

This commit is contained in:
David Peter authored and David Peter committed 2023-04-26 14:53:37 +02:00
1 parent 816779e968
commit 57d18482ba
1 file changed
+2
+2
View File
@@ -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_RESET: &[u8] = colors::Default::ANSI_FG.as_bytes();
#[derive(Copy, Clone)]
pub enum ByteCategory {
Null,
AsciiPrintable,
@@ -29,6 +30,7 @@ pub enum ByteCategory {
NonAscii,
}
#[derive(Copy, Clone)]
pub enum Endianness {
Little,
Big,