Struct pretty_hex::HexConfig [−][src]
Configuration parameters for hexdump.
Fields
title: bool
Write first line header with data length.
ascii: bool
Append ASCII representation column.
width: usize
Source bytes per row. 0 for single row without address prefix.
group: usize
Chunks count per group. 0 for single group (column).
chunk: usize
Source bytes per chunk (word). 0 for single word.
Implementations
impl HexConfig
[src]
pub fn simple() -> Self
[src]
Returns configuration for simple_hex
, simple_hex_write
and fmt::Display
implementation.
Trait Implementations
impl Clone for HexConfig
[src]
fn clone(&self) -> HexConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HexConfig
[src]
impl Debug for HexConfig
[src]
impl Default for HexConfig
[src]
Default configuration with title
, ascii
, 16 source bytes width
grouped to 4 separate
hex bytes. Using in pretty_hex
, pretty_hex_write
and fmt::Debug
implementation.
Auto Trait Implementations
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> 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>,