pub struct Hex(pub bool);Expand description
A repr for formatting data in hexadecimal. Implemented for all integers.
The inner bool specifies whether or not output should be uppercase.
Unlike Debug and Pretty, cannot be
derived, since most types cannot be intuitively formatted in hex.
Equivalent of core::fmt::LowerHex and core::fmt::UpperHex.
Tuple Fields§
§0: boolImplementations§
Trait Implementations§
impl Copy for Hex
impl Style for Hex
Auto Trait Implementations§
impl Freeze for Hex
impl RefUnwindSafe for Hex
impl Send for Hex
impl Sync for Hex
impl Unpin for Hex
impl UnwindSafe for Hex
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