Struct hex_display::UpperHex
source · [−]pub struct UpperHex<'a>(pub &'a [u8]);
Expand description
Like Hex
, but provides an upper-case hexdump
use hex_display::UpperHex;
assert_eq!(
format!("{}", UpperHex(&[0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF])),
"0123456789ABCDEF"
);
Tuple Fields
0: &'a [u8]
The bytes to be converted into a hexdump
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for UpperHex<'a>
impl<'a> Send for UpperHex<'a>
impl<'a> Sync for UpperHex<'a>
impl<'a> Unpin for UpperHex<'a>
impl<'a> UnwindSafe for UpperHex<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more