Struct hexplay::HexViewBuilder
[−]
[src]
pub struct HexViewBuilder<'a> { /* fields omitted */ }
A builder for the HexView struct.
Methods
impl<'a> HexViewBuilder<'a>
[src]
pub fn new(data: &[u8]) -> HexViewBuilder
[src]
Constructs a new HexViewBuilder for the given data.
pub fn address_offset(self, offset: usize) -> HexViewBuilder<'a>
[src]
Configures the address offset of the HexView under construction.
pub fn force_color(self) -> Self
[src]
Forces any color data to be printed in print
, even if redirected to a file or pipe.
pub fn codepage<'b: 'a>(self, codepage: &'b [char]) -> HexViewBuilder<'a>
[src]
Configures the codepage of the HexView under construction.
pub fn replacement_character(self, ch: char) -> HexViewBuilder<'a>
[src]
Configures the replacement character of the HexView under construction.
The replacement character is the character that will be used for nonprintable characters in the codepage.
pub fn row_width(self, width: usize) -> HexViewBuilder<'a>
[src]
Configures the row width of the HexView under construction.
pub fn add_colors(self, colors: Colors) -> HexViewBuilder<'a>
[src]
Adds the vector of colors
to the range color printer
pub fn add_color(self, color: &str, range: Range<usize>) -> HexViewBuilder<'a>
[src]
Adds the color
to the given range
, using a more ergonomic API
pub fn finish(self) -> HexView<'a>
[src]
Constructs the HexView.