dz6 0.4.1

A vim-inspired, TUI-based hexadecimal editor
#[derive(PartialEq)]
pub enum AppView {
    Text,
    Hex,
}

impl AppView {
    pub fn next(&mut self) {
        match self {
            AppView::Text => *self = AppView::Hex,
            AppView::Hex => *self = AppView::Text,
        }
    }
}

#[derive(PartialEq)]
pub enum UIState {
    DialogCalculator,
    DialogComment,
    DialogEncoding,
    Command,
    DialogHelp,
    DialogLog,
    DialogNames,
    DialogNamesRegex,
    DialogSearch,
    DialogStrings,
    DialogStringsRegex,
    HexEditing,
    HexSelection,
    Normal,
}