[−][src]Struct ddbug::HtmlPrinter
Implementations
impl<'w> HtmlPrinter<'w>
[src]
pub fn new(w: &'w mut dyn Write, options: &Options<'_>) -> Self
[src]
pub fn begin(&mut self) -> Result<()>
[src]
pub fn end(&mut self) -> Result<()>
[src]
Trait Implementations
impl<'w> Printer for HtmlPrinter<'w>
[src]
pub fn value(
&mut self,
buf: &mut Vec<u8>,
f: &mut dyn FnMut(&mut dyn ValuePrinter) -> Result<()>
) -> Result<()>
[src]
&mut self,
buf: &mut Vec<u8>,
f: &mut dyn FnMut(&mut dyn ValuePrinter) -> Result<()>
) -> Result<()>
pub fn buffer(
&mut self,
buf: &mut Vec<u8>,
f: &mut dyn FnMut(&mut dyn Printer) -> Result<()>
) -> Result<()>
[src]
&mut self,
buf: &mut Vec<u8>,
f: &mut dyn FnMut(&mut dyn Printer) -> Result<()>
) -> Result<()>
Calls f
to write to a temporary buffer.
pub fn write_buf(&mut self, buf: &[u8]) -> Result<()>
[src]
pub fn line_break(&mut self) -> Result<()>
[src]
pub fn line(&mut self, id: usize, label: &str, buf: &[u8]) -> Result<()>
[src]
pub fn line_diff(
&mut self,
id: usize,
label: &str,
a: &[u8],
b: &[u8]
) -> Result<()>
[src]
&mut self,
id: usize,
label: &str,
a: &[u8],
b: &[u8]
) -> Result<()>
pub fn indent_body(
&mut self,
buf: &mut Vec<u8>,
body: &mut dyn FnMut(&mut dyn Printer) -> Result<()>
) -> Result<()>
[src]
&mut self,
buf: &mut Vec<u8>,
body: &mut dyn FnMut(&mut dyn Printer) -> Result<()>
) -> Result<()>
pub fn indent_header(
&mut self,
collapsed: bool,
body: &[u8],
header: &mut dyn FnMut(&mut dyn Printer) -> Result<()>
) -> Result<()>
[src]
&mut self,
collapsed: bool,
body: &[u8],
header: &mut dyn FnMut(&mut dyn Printer) -> Result<()>
) -> Result<()>
pub fn prefix(&mut self, prefix: DiffPrefix)
[src]
pub fn get_prefix(&self) -> DiffPrefix
[src]
pub fn inline_begin(&mut self) -> bool
[src]
pub fn inline_end(&mut self)
[src]
Auto Trait Implementations
impl<'w> !RefUnwindSafe for HtmlPrinter<'w>
[src]
impl<'w> !Send for HtmlPrinter<'w>
[src]
impl<'w> !Sync for HtmlPrinter<'w>
[src]
impl<'w> Unpin for HtmlPrinter<'w>
[src]
impl<'w> !UnwindSafe for HtmlPrinter<'w>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,