pub trait WebPageWriter {
// Required methods
fn write_toc_html(&self, w: &mut dyn Write, index: usize) -> Result<()>;
fn write_html(&self, w: &mut dyn Write, index: usize) -> Result<()>;
}
Expand description
It replies to the requests made by the web page renderer.
Required Methods§
sourcefn write_toc_html(&self, w: &mut dyn Write, index: usize) -> Result<()>
fn write_toc_html(&self, w: &mut dyn Write, index: usize) -> Result<()>
Write the TOC (Table of Contents) item in the HTML index file
after the finalisation function is called, i.e. in the very end.
The index parameter specifies the ordered number of the item.
You should start the HTML code with call of
the begin_html_list_item
function.