pub struct FormatHex<'s> {
pub prefix: &'s str,
pub separator: &'s str,
pub uppercase: bool,
}
Expand description
Formats bytes in hexadecimal pairs (00 - FF
).
Fields§
§prefix: &'s str
The prefix, if any, for each byte.
separator: &'s str
The separator for individual hex-formatted bytes.
uppercase: bool
Whether or not to write the hex-pairs in uppercase
Trait Implementations§
Source§impl<'s> ByteFormat for FormatHex<'s>
impl<'s> ByteFormat for FormatHex<'s>
impl<'s> Copy for FormatHex<'s>
Auto Trait Implementations§
impl<'s> Freeze for FormatHex<'s>
impl<'s> RefUnwindSafe for FormatHex<'s>
impl<'s> Send for FormatHex<'s>
impl<'s> Sync for FormatHex<'s>
impl<'s> Unpin for FormatHex<'s>
impl<'s> UnwindSafe for FormatHex<'s>
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