pub struct BinaryPrettyPrint<T: Binary + PrimInt>(pub T);
Expand description
Values can be wrapped in this type when they’re printed to display them as easy-to-read binary
numbers. Display
is implemented to print the value in the form 00000000-00000000
, while
Debug
will print it in the form 00000000(8)-00000000(0)
(with offsets of each byte).
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for BinaryPrettyPrint<T>where
T: Freeze,
impl<T> RefUnwindSafe for BinaryPrettyPrint<T>where
T: RefUnwindSafe,
impl<T> Send for BinaryPrettyPrint<T>where
T: Send,
impl<T> Sync for BinaryPrettyPrint<T>where
T: Sync,
impl<T> Unpin for BinaryPrettyPrint<T>where
T: Unpin,
impl<T> UnwindSafe for BinaryPrettyPrint<T>where
T: UnwindSafe,
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