Crate edhex_core

Crate edhex_core 

Source

Structs§

Byte
Preferences
State
StateSansBytes
This struct exists exclusively for serializing State’s to disk without including all_bytes. If more entries end up in State that need to be saved off, change this struct to reflect them.

Enums§

AllBytesFromFilenameError
ByteCategory

Constants§

COLOR_ASCII_OTHER
COLOR_ASCII_PRINTABLE
COLOR_ASCII_WHITESPACE
COLOR_NONASCII
COLOR_NULL

Statics§

DEFAULT_WIDTH

Traits§

DiskWritable

Functions§

address_display
all_bytes_from_filename
bad_range
bytes_from_string
bytes_line_bytes
bytes_line_range
cargo_version
chared_byte
chared_bytes
chars_line
chars_line_chars
colored_chared_bytes
filehandle
get_input_or_die
hex_unless_dec
hex_unless_dec_with_radix
index_of_bytes
is_a_regular_file
TODO Per https://doc.rust-lang.org/std/io/enum.ErrorKind.html IsADirectory isn’t available yet. Check against it when it is.
lino
max_bytes_line_num
When printing [1, 2, 3, 4, 5, 6, 7] on a width of 3, the maximum 0-up line number is 3. This function returns that calculation. See test_max_bytes_line for examples
move_to
Returns new index
num_bytes_or_die
num_graphemes
.len gives the number of bytes .chars.count() gives the number of characters (which counts è as two characters. The human concept is unicode “graphemes” or “glyphs” defined to be what think they are.
padded_byte
path_exists
preferences_file_path
Per XDG Base Directory Specification, dotfiles should go to $XDG_CONFIG_HOME if it exists, and $HOME/.config if it doesn’t.
read_string_from_user
save_to_path_or_default
state_file_path
Per XDG Base Directory Specification, state files should go to $XDG_STATE_HOME if it exists, and $HOME/.local/state if it doesn’t.
string_from_bytes
string_from_radix