Skip to main content

DumpFormatOptions

Struct DumpFormatOptions 

Source
pub struct DumpFormatOptions { /* private fields */ }

Implementations§

Source§

impl DumpFormatOptions

Source

pub fn classic_hex_dump() -> Self

Source

pub fn ascii_hex_dump() -> Self

Source

pub fn hex_dump() -> Self

Source

pub fn octal_dump() -> Self

Source

pub fn binary_dump() -> Self

Source

pub fn decimal_dump() -> Self

Source

pub fn lower_hex_dump() -> Self

Source

pub fn with_byte_radix_format(self, radix_format: RadixFormat) -> Self

Sets the radix format for each byte in the array to be one of the values of the enum RadixFormat.

Source

pub fn with_binary_bytes(self) -> Self

Sets the radix format for each byte in the array to RadixFormat::Binary.

Source

pub fn with_decimal_bytes(self) -> Self

Sets the radix format for each byte in the array to RadixFormat::Decimal.

Source

pub fn with_lower_hex_bytes(self) -> Self

Sets the radix format for each byte in the array to RadixFormat::LowerHex.

Source

pub fn with_octal_bytes(self) -> Self

Sets the radix format for each byte in the array to RadixFormat::Octal.

Source

pub fn with_upper_hex_bytes(self) -> Self

Sets the radix format for each byte in the array to RadixFormat::UpperHex.

Source

pub fn has_index_header_line(self, header_line: bool) -> Self

Source

pub fn underline_column_index_with(self, underline: char) -> Self

Source

pub fn no_column_index_underline(self) -> Self

Source

pub fn separate_columns_with(self, column_separator: char) -> Self

Source

pub fn has_index_line_numbers(self, line_numbers: bool) -> Self

Source

pub fn with_index_radix_format(self, index_radix_format: RadixFormat) -> Self

Sets the radix format for line and column indices to be one of the values of the enum RadixFormat.

Source

pub fn with_decimal_indices(self) -> Self

Sets the radix format for line and column indices to RadixFormat::Decimal.

Source

pub fn with_lower_hex_indices(self) -> Self

Sets the radix format for line and column indices to RadixFormat::LowerHex.

Source

pub fn with_octal_indices(self) -> Self

Sets the radix format for line and column indices to RadixFormat::Octal.

Source

pub fn with_upper_hex_indices(self) -> Self

Sets the radix format for line and column indices to RadixFormat::UpperHex.

Source

pub fn has_two_columns(self, two_columns: bool) -> Self

Source

pub fn with_column_width(self, column_width: DumpColumnWidth) -> Self

Source

pub fn one_column_of(self, column_width: DumpColumnWidth) -> Self

Source

pub fn two_columns_of(self, column_width: DumpColumnWidth) -> Self

Source

pub fn compact(self, compact: bool) -> Self

Source

pub fn show_ascii(self, show_ascii: bool) -> Self

Source

pub fn show_extended_ascii(self, show_extended_ascii: bool) -> Self

Trait Implementations§

Source§

impl Clone for DumpFormatOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DumpFormatOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DumpFormatOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for DumpFormatOptions

Source§

impl From<DumpFormatOptions> for BinaryFormatOptions

Source§

fn from(value: DumpFormatOptions) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DumpFormatOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DumpFormatOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.