pub struct HtmlPrinter<'w> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'w> Printer for HtmlPrinter<'w>
impl<'w> Printer for HtmlPrinter<'w>
fn value( &mut self, buf: &mut Vec<u8>, f: &mut dyn FnMut(&mut dyn ValuePrinter) -> Result<()>, ) -> Result<()>
Source§fn buffer(
&mut self,
f: &mut dyn FnMut(&mut dyn Printer) -> Result<()>,
) -> Result<bool>
fn buffer( &mut self, f: &mut dyn FnMut(&mut dyn Printer) -> Result<()>, ) -> Result<bool>
Calls
f to write to an internal buffer. Read moreSource§fn write_buf(&mut self) -> Result<()>
fn write_buf(&mut self) -> Result<()>
Writes the internal buffer created by the previous
buffer or indent_body call.fn line_break(&mut self) -> Result<()>
fn line(&mut self, label: &str, buf: &[u8]) -> Result<()>
fn line_diff(&mut self, label: &str, a: &[u8], b: &[u8]) -> Result<()>
Source§fn indent_body(
&mut self,
body: &mut dyn FnMut(&mut dyn Printer) -> Result<()>,
) -> Result<bool>
fn indent_body( &mut self, body: &mut dyn FnMut(&mut dyn Printer) -> Result<()>, ) -> Result<bool>
Calls
body to write an indented body to an internal buffer. Read moreSource§fn indent_header(
&mut self,
collapsed: bool,
header: &mut dyn FnMut(&mut dyn Printer) -> Result<()>,
) -> Result<()>
fn indent_header( &mut self, collapsed: bool, header: &mut dyn FnMut(&mut dyn Printer) -> Result<()>, ) -> Result<()>
Calls
header to write the header, followed by the internal buffer created by
the previous indent_body call.Source§fn indent_id(
&mut self,
id: usize,
header: &mut dyn FnMut(&mut dyn Printer) -> Result<()>,
body: &mut dyn FnMut(&mut dyn Printer) -> Result<()>,
) -> Result<()>
fn indent_id( &mut self, id: usize, header: &mut dyn FnMut(&mut dyn Printer) -> Result<()>, body: &mut dyn FnMut(&mut dyn Printer) -> Result<()>, ) -> Result<()>
Calls
header and body to write the output for an item with the given id.Source§fn indent_detail(&mut self, detail: &str, label: &str) -> Result<bool>
fn indent_detail(&mut self, detail: &str, label: &str) -> Result<bool>
Optionally prints a labelled reference to a block of detail information. Read more
fn prefix(&mut self, prefix: DiffPrefix)
fn get_prefix(&self) -> DiffPrefix
Source§fn instructions(
&mut self,
f: &mut dyn FnMut(&mut dyn Printer) -> Result<()>,
) -> Result<()>
fn instructions( &mut self, f: &mut dyn FnMut(&mut dyn Printer) -> Result<()>, ) -> Result<()>
Calls
f to write a block of instructions. Read morefn instruction( &mut self, address: Option<u64>, mnemonic: &str, buf: &[u8], ) -> Result<()>
Auto Trait Implementations§
impl<'w> !RefUnwindSafe for HtmlPrinter<'w>
impl<'w> !Send for HtmlPrinter<'w>
impl<'w> !Sync for HtmlPrinter<'w>
impl<'w> !UnwindSafe for HtmlPrinter<'w>
impl<'w> Freeze for HtmlPrinter<'w>
impl<'w> Unpin for HtmlPrinter<'w>
impl<'w> UnsafeUnpin for HtmlPrinter<'w>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more