[][src]Struct hexyl::Printer

pub struct Printer<'a, Writer: Write> { /* fields omitted */ }

Implementations

impl<'a, Writer: Write> Printer<'a, Writer>[src]

pub fn new(
    writer: &'a mut Writer,
    show_color: bool,
    border_style: BorderStyle,
    use_squeeze: bool
) -> Printer<'a, Writer>
[src]

pub fn display_offset(&mut self, display_offset: u64) -> &mut Self[src]

pub fn header(&mut self)[src]

pub fn footer(&mut self)[src]

pub fn print_byte(&mut self, b: u8) -> Result<()>[src]

pub fn print_textline(&mut self) -> Result<()>[src]

pub fn header_was_printed(&self) -> bool[src]

pub fn print_all<Reader: Read>(
    &mut self,
    reader: Reader
) -> Result<(), Box<dyn Error>>
[src]

Loop through the given Reader, printing until the Reader buffer is exhausted.

Auto Trait Implementations

impl<'a, Writer> RefUnwindSafe for Printer<'a, Writer> where
    Writer: RefUnwindSafe

impl<'a, Writer> Send for Printer<'a, Writer> where
    Writer: Send

impl<'a, Writer> Sync for Printer<'a, Writer> where
    Writer: Sync

impl<'a, Writer> Unpin for Printer<'a, Writer>

impl<'a, Writer> !UnwindSafe for Printer<'a, Writer>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.