pub struct HexConfig {
pub title: bool,
pub ascii: bool,
pub width: usize,
pub group: usize,
pub chunk: usize,
pub address_offset: usize,
pub skip: Option<usize>,
pub length: Option<usize>,
pub styles: HexStyles,
}Expand description
Configuration parameters for hexdump.
Fields§
§title: boolWrite first line header with data length.
ascii: boolAppend ASCII representation column.
width: usizeSource bytes per row. 0 for single row without address prefix.
group: usizeChunks count per group. 0 for single group (column).
chunk: usizeSource bytes per chunk (word). 0 for single word.
address_offset: usizeOffset to start counting addresses from
skip: Option<usize>Bytes from 0 to skip
length: Option<usize>Length to return
styles: HexStylesColors / styling for different byte categories.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HexConfig
impl RefUnwindSafe for HexConfig
impl Send for HexConfig
impl Sync for HexConfig
impl Unpin for HexConfig
impl UnsafeUnpin for HexConfig
impl UnwindSafe for HexConfig
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