Skip to main content

complement

Function complement 

Source
pub fn complement(set: &[u8]) -> Vec<u8> 
Expand description

Build the complement of a character set: all bytes NOT in the given set. Result is sorted ascending (0, 1, 2, … 255 minus the set members).