pub struct DisplayHex<'a>(pub &'a [u8]);
Expand description
A display helper for formatting a slice of bytes as hex with different options using Rust’s builtin format language
Tuple Fields§
§0: &'a [u8]
Implementations§
Source§impl<'a> DisplayHex<'a>
impl<'a> DisplayHex<'a>
Trait Implementations§
Source§impl<'a> Display for DisplayHex<'a>
impl<'a> Display for DisplayHex<'a>
Source§impl<'a> LowerHex for DisplayHex<'a>
impl<'a> LowerHex for DisplayHex<'a>
Source§impl<'a> PrettyPrint for DisplayHex<'a>
impl<'a> PrettyPrint for DisplayHex<'a>
Source§fn to_pretty_string(&self) -> String
fn to_pretty_string(&self) -> String
Source§fn pretty_print(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn pretty_print(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Pretty-print this object to the given core::fmt::Formatter. Read more
Source§impl<'a> ToHex for DisplayHex<'a>
impl<'a> ToHex for DisplayHex<'a>
Auto Trait Implementations§
impl<'a> Freeze for DisplayHex<'a>
impl<'a> RefUnwindSafe for DisplayHex<'a>
impl<'a> Send for DisplayHex<'a>
impl<'a> Sync for DisplayHex<'a>
impl<'a> Unpin for DisplayHex<'a>
impl<'a> UnwindSafe for DisplayHex<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more