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,
}Expand description
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: usizeControls 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: usizeControls 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 strControls the separator between the hex groups in the data output.
Default is (0x20)
addr_hex_separator: &'static strControls the separator between the address label and the hex output of the data.
Default is :
hex_ascii_separator: &'static strControls the separator between the hex output and the ASCII representation of the data.
Default is |
show_ascii: boolControls if the ASCII representation of the data should be shown.
Default is true
Trait Implementations§
Source§impl Clone for HexViewConfig
impl Clone for HexViewConfig
Source§fn clone(&self) -> HexViewConfig
fn clone(&self) -> HexViewConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HexViewConfig
impl Debug for HexViewConfig
Source§impl Default for HexViewConfig
impl Default for HexViewConfig
impl Copy for HexViewConfig
Auto Trait Implementations§
impl Freeze for HexViewConfig
impl RefUnwindSafe for HexViewConfig
impl Send for HexViewConfig
impl Sync for HexViewConfig
impl Unpin for HexViewConfig
impl UnwindSafe for HexViewConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more