Struct nu_pretty_hex::HexConfig[][src]

pub struct HexConfig {
    pub title: bool,
    pub ascii: bool,
    pub width: usize,
    pub group: usize,
    pub chunk: 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.

skip: Option<usize>

Bytes from 0 to skip

length: Option<usize>

Length to return

Implementations

Returns configuration for simple_hex, simple_hex_write and fmt::Display implementation.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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.

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.