From 57d18482bab3fba9b13f723cc204e4a3a5ead097 Mon Sep 17 00:00:00 2001 From: David Peter Date: Wed, 26 Apr 2023 14:53:37 +0200 Subject: [PATCH] Add Copy and Clone for Endianness --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 410a897..cc2a04e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,