Trait somedoc::model::visitor::DocumentVisitor [−][src]
The visitor trait for a Document
instance.
Provided methods
fn start_document(&self) -> Result<()>
[src]
Called at the start of each Document
instance, before any inner content.
fn start_metadata(&self) -> Result<()>
[src]
Called before any metadata items, and only if there are metadata items.
fn metadata(&self, metadatum: &Metadata) -> Result<()>
[src]
Visit each Metadata
instance.
fn end_metadata(&self) -> Result<()>
[src]
Called after any metadata items, and only if there are metadata items.
fn block_visitor(&self) -> Option<&dyn BlockVisitor>
[src]
Return an implementation of the BlockVisitor
trait, if one exists.
fn end_document(&self) -> Result<()>
[src]
Called at the end of each Document
instance, after any inner content.