[][src]Trait tectonic_xdv::XdvEvents

pub trait XdvEvents {
    type Error: Debug + From<XdvError>;
    pub fn handle_header(
        &mut self,
        filetype: FileType,
        comment: &[u8]
    ) -> Result<(), Self::Error> { ... }
pub fn handle_begin_page(
        &mut self,
        counters: &[i32],
        previous_bop: i32
    ) -> Result<(), Self::Error> { ... }
pub fn handle_special(&mut self, contents: &[u8]) -> Result<(), Self::Error> { ... }
pub fn handle_char_run(&mut self, chars: &[i32]) -> Result<(), Self::Error> { ... } }

Types implementing this trait accept events from the XDV parser.

Associated Types

type Error: Debug + From<XdvError>[src]

An error type returned by the handler functions defined in this trait. It must implement From<XdvError>.

Loading content...

Provided methods

pub fn handle_header(
    &mut self,
    filetype: FileType,
    comment: &[u8]
) -> Result<(), Self::Error>
[src]

Handle the XDV header

pub fn handle_begin_page(
    &mut self,
    counters: &[i32],
    previous_bop: i32
) -> Result<(), Self::Error>
[src]

Begin a new page.

pub fn handle_special(&mut self, contents: &[u8]) -> Result<(), Self::Error>[src]

Handle a \special.

pub fn handle_char_run(&mut self, chars: &[i32]) -> Result<(), Self::Error>[src]

Handle a sequence of characters without intervening commands

Loading content...

Implementors

Loading content...