pub trait Set {
    fn has(&self, r: u8) -> bool;
    fn new(chars: &[u8]) -> Self;
    fn size(&self) -> usize;
}
Expand description

Set trait defines common methods available for NormalSet and SmallSet

Required methods

Checks if a Set contains a character

Instanciates Set with a given charset

Counts number of bits with value 1 in the bit vector which is the number of characters matched by Set

Implementors

Common methods between SmallSet and NormalSet

Common methods between SmallSet and NormalSet