pub trait FaithfulDisplay {
    fn faithful_fmt(
        &self,
        f: &mut Formatter<'_>,
        prev_span: LineColumn
    ) -> Result<LineColumn, Error>; }
Expand description

A more faithful Display.

This trait works by accumulating a LineColumn as it formats tokens. By recomputing on the fly on the layout of each token, it’s possible to insert newlines and spaces to respect the initial formatting.

Required Methods§

Display a token in a faithful way.

Implementations on Foreign Types§

Implementors§