pub struct HtmlPrinter<'w> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'w> Printer for HtmlPrinter<'w>
impl<'w> Printer for HtmlPrinter<'w>
Source§fn buffer(
&mut self,
buf: &mut Vec<u8>,
f: &mut dyn FnMut(&mut dyn Printer) -> Result<()>,
) -> Result<()>
fn buffer( &mut self, buf: &mut Vec<u8>, f: &mut dyn FnMut(&mut dyn Printer) -> Result<()>, ) -> Result<()>
Calls f
to write to a temporary buffer.
fn value( &mut self, buf: &mut Vec<u8>, f: &mut dyn FnMut(&mut dyn ValuePrinter) -> Result<()>, ) -> Result<()>
fn write_buf(&mut self, buf: &[u8]) -> Result<()>
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<()>
fn indent_body( &mut self, buf: &mut Vec<u8>, body: &mut dyn FnMut(&mut dyn Printer) -> Result<()>, ) -> Result<()>
fn indent_header( &mut self, collapsed: bool, body: &[u8], header: &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<()>
fn indent_detail(&mut self, id: &str, label: &str) -> Result<()>
fn prefix(&mut self, prefix: DiffPrefix)
fn get_prefix(&self) -> DiffPrefix
fn inline_begin(&mut self) -> bool
fn inline_end(&mut self)
fn instruction( &mut self, address: Option<u64>, mnemonic: &str, buf: &[u8], ) -> Result<()>
Auto Trait Implementations§
impl<'w> Freeze for HtmlPrinter<'w>
impl<'w> !RefUnwindSafe for HtmlPrinter<'w>
impl<'w> !Send for HtmlPrinter<'w>
impl<'w> !Sync for HtmlPrinter<'w>
impl<'w> Unpin for HtmlPrinter<'w>
impl<'w> !UnwindSafe 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