pub enum Format {
Decimal,
Hexadecimal,
Instruction,
String,
}Expand description
How to format bytes when examining memory.
Decimalprints bytes as decimal numbers.Hexadecimalprints bytes in hexadecimal.Instructioninterprets the buffer as machine code and disassembles it.Stringtreats the buffer as UTF-8 and prints the string.
Variants§
Decimal
Print each byte as decimal.
Hexadecimal
Print each byte as hexadecimal.
Instruction
Disassemble the buffer into instructions and print them.
String
Print the buffer as a UTF-8 string.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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