parze 0.7.3

A clean, efficient parser combinator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// A trait to interpret symbols as padding.
///
/// Implement this trait for your own types to allow padding-related functionality
pub trait Padded {
    fn is_padding(&self) -> bool;
}

impl Padded for char {
    fn is_padding(&self) -> bool {
        self.is_whitespace()
    }
}

impl Padded for u8 {
    fn is_padding(&self) -> bool {
        self.is_ascii_whitespace()
    }
}