Struct cursive_hexview::HexViewConfig[][src]

pub struct HexViewConfig {
    pub bytes_per_line: usize,
    pub bytes_per_group: usize,
    pub byte_group_separator: &'static str,
    pub addr_hex_separator: &'static str,
    pub hex_ascii_separator: &'static str,
    pub show_ascii: bool,
}

Controls the visual output of the HexView struct.

There are various options which can be altered. For a detailed description of them, please see the fields below. For the changes to apply, you need to use set_config.

Fields

bytes_per_line: usize

Controls the number of bytes per line.

It needs to be greater than 0 and equal or higher than the bytes_per_group value. Default is 16

bytes_per_group: usize

Controls the number of bytes per group.

It needs to be greater than 0 equal or lower than bytes_per_line. Default is 1

byte_group_separator: &'static str

Controls the separator between the hex groups in the data output.

Default is (0x20)

addr_hex_separator: &'static str

Controls the separator between the address label and the hex output of the data.

Default is :

hex_ascii_separator: &'static str

Controls the separator between the hex output and the ASCII representation of the data.

Default is |

show_ascii: bool

Controls if the ASCII representation of the data should be shown.

Default is true

Trait Implementations

impl Clone for HexViewConfig[src]

impl Copy for HexViewConfig[src]

impl Debug for HexViewConfig[src]

impl Default for HexViewConfig[src]

Auto Trait Implementations

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> Erased for T

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.

impl<T> With for T