pub trait Set { fn has(&self, r: u8) -> bool; fn new(chars: &[u8]) -> Self; fn size(&self) -> usize; }
Set trait defines common methods available for NormalSet and SmallSet
Set
NormalSet
SmallSet
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
Common methods between SmallSet and NormalSet