[][src]Struct pretty_hex::HexConfig

pub struct HexConfig {
    pub title: bool,
    pub ascii: bool,
    pub width: usize,
    pub group: usize,
    pub chunk: usize,
}

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.

Implementations

impl HexConfig[src]

pub fn simple() -> Self[src]

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

Trait Implementations

impl Clone for HexConfig[src]

impl Copy for HexConfig[src]

impl Debug for HexConfig[src]

impl Default for HexConfig[src]

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.

Auto Trait Implementations

impl Send for HexConfig

impl Sync for HexConfig

impl Unpin for HexConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.