Struct nu_pretty_hex::HexConfig
source · 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>,
}
Expand description
Configuration parameters for hexdump.
Fields§
§title: bool
Write first line header with data length.
ascii: bool
Append ASCII representation column.
width: usize
Source bytes per row. 0 for single row without address prefix.
group: usize
Chunks count per group. 0 for single group (column).
chunk: usize
Source bytes per chunk (word). 0 for single word.
address_offset: usize
Offset to start counting addresses from
skip: Option<usize>
Bytes from 0 to skip
length: Option<usize>
Length to return
Implementations§
Trait Implementations§
source§impl Default for HexConfig
impl Default for HexConfig
Default configuration with title
, ascii
, 16 source bytes width
grouped to 4 separate
hex bytes. Using in pretty_hex
, pretty_hex_write
and fmt::Debug
implementation.