Struct edhex_core::State[][src]

pub struct State {
    pub radix: u32,
    pub show_byte_numbers: bool,
    pub show_chars: bool,
    pub unsaved_changes: bool,
    pub filename: String,
    pub show_prompt: bool,
    pub color: bool,
    pub index: usize,
    pub width: NonZeroUsize,
    pub all_bytes: Vec<u8>,
    pub n_padding: String,
    pub last_search: Option<Vec<u8>>,
}

Fields

radix: u32show_byte_numbers: boolshow_chars: boolunsaved_changes: boolfilename: Stringshow_prompt: boolcolor: boolindex: usizewidth: NonZeroUsizeall_bytes: Vec<u8>n_padding: Stringlast_search: Option<Vec<u8>>

Implementations

Return the byte numbers necessary for the left column of a display

returns index of the byte in the 0-th column of the last row printed

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. 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.

Converts the given value to a String. 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.