bitgrep 0.1.5

Binary grep for numerical data types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{error::Error, fmt::Display};

use super::output::Output;

/// Implements a printing output sink for bitgrep
pub trait Printer<T>
where
    T: Display,
{
    /// Feed a result to print
    fn feed(&mut self, output: Output<T>) -> Result<(), Box<dyn Error>>;

    /// Call when ending all processing, this allows
    /// printers to print a footer or flush buffered output.
    fn end(&mut self) -> Result<(), Box<dyn Error>>;
}