Struct cursive_hexview::HexViewConfig [−][src]
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
impl Clone for HexViewConfig[src]
fn clone(&self) -> HexViewConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for HexViewConfig[src]
impl Debug for HexViewConfig[src]
impl Default for HexViewConfig[src]
fn default() -> HexViewConfig[src]
Auto Trait Implementations
impl RefUnwindSafe for HexViewConfig[src]
impl Send for HexViewConfig[src]
impl Sync for HexViewConfig[src]
impl Unpin for HexViewConfig[src]
impl UnwindSafe for HexViewConfig[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> With for T
pub fn wrap_with<U, F>(self, f: F) -> U where
F: FnOnce(Self) -> U,
F: FnOnce(Self) -> U,
pub fn with<F>(self, f: F) -> Self where
F: FnOnce(&mut Self),
F: FnOnce(&mut Self),
pub fn try_with<E, F>(self, f: F) -> Result<Self, E> where
F: FnOnce(&mut Self) -> Result<(), E>,
F: FnOnce(&mut Self) -> Result<(), E>,
pub fn with_if<F>(self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
F: FnOnce(&mut Self),