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
/// Filters a result according to configuration
pub trait Filter<T> {
    /// Should output the result
    /// true to include, false to exclude.
    fn include(&self, result: T) -> bool;

    fn include_unwrap(&self, result: Option<T>) -> bool {
        if result.is_none() {
            return false;
        }

        return self.include(result.unwrap());
    }
}