rtex 0.1.2

Native TeX to PDF converter written in Rust with zero external LaTeX dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Shared traits and macros to reduce boilerplate.
//!
//! Ported and simplified from `latex-rust/src/common.rs`.

/// Trait for types that provide a `clear` operation.
pub trait Clear {
    fn clear(&mut self);
}

/// Trait for types that expose statistics.
pub trait Stats {
    type StatsType;
    fn stats(&self) -> &Self::StatsType;
}