pub struct HexI16(pub i16);Expand description
Helper struct that wraps a i16 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 i16. Signed types are cast to their unsigned counterpart before formatting, giving the two’s complement representation without a sign prefix.
Tuple Fields§
§0: i16Trait Implementations§
Auto Trait Implementations§
impl Freeze for HexI16
impl RefUnwindSafe for HexI16
impl Send for HexI16
impl Sync for HexI16
impl Unpin for HexI16
impl UnsafeUnpin for HexI16
impl UnwindSafe for HexI16
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