Trait html2md::TagHandler [−][src]
pub trait TagHandler { fn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter); fn after_handle(&mut self, printer: &mut StructuredPrinter); fn skip_descendants(&self) -> bool { ... } }
Expand description
Trait interface describing abstract handler of arbitrary HTML tag.
Required methods
fn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter)
fn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter)
Handle tag encountered when walking HTML tree. This is executed before the children processing
fn after_handle(&mut self, printer: &mut StructuredPrinter)
fn after_handle(&mut self, printer: &mut StructuredPrinter)
Executed after all children of this tag have been processed
Provided methods
fn skip_descendants(&self) -> bool