MdocVisitor

Trait MdocVisitor 

Source
pub trait MdocVisitor {
    // Required methods
    fn header(&mut self, entry: &str);
    fn begin_tilt(&mut self, z: usize);
    fn field(&mut self, key: &str, value: &str);
    fn end_tilt(&mut self);
}
Expand description

§=========================== Streaming Visitor API

Required Methods§

Source

fn header(&mut self, entry: &str)

Called for each header entry (comments, unknown lines, etc.) Receives the raw line as-is (before any parsing or normalization)

Source

fn begin_tilt(&mut self, z: usize)

Called when a new tilt image (Z block) begins

Source

fn field(&mut self, key: &str, value: &str)

Called for each field in the current tilt image

Source

fn end_tilt(&mut self)

Called when the current tilt image ends

Implementors§