Struct nu_pretty_hex::HexConfig [−][src]
pub struct HexConfig { pub title: bool, pub ascii: bool, pub width: usize, pub group: usize, pub chunk: usize, pub skip: Option<usize>, pub length: Option<usize>, }
Expand description
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.
skip: Option<usize>
Bytes from 0 to skip
length: Option<usize>
Length to return
Implementations
Trait Implementations
impl Default 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.
impl Copy for HexConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for HexConfig
impl Send for HexConfig
impl Sync for HexConfig
impl Unpin for HexConfig
impl UnwindSafe for HexConfig
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more