pub struct HexU16(pub u16);Expand description
Helper struct that wraps a u16 and improves its std::fmt::Debug formatting. Formats the value as a zero-padded hexadecimal number with a 0x prefix, padded to the full bit-width of u16. Signed types are cast to their unsigned counterpart before formatting, giving the two’s complement representation without a sign prefix.
Tuple Fields§
§0: u16Trait Implementations§
Auto Trait Implementations§
impl Freeze for HexU16
impl RefUnwindSafe for HexU16
impl Send for HexU16
impl Sync for HexU16
impl Unpin for HexU16
impl UnsafeUnpin for HexU16
impl UnwindSafe for HexU16
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