WhitespaceSifterBytes

Trait WhitespaceSifterBytes 

Source
pub trait WhitespaceSifterBytes: AsRef<[u8]> {
    // Provided methods
    fn sift_bytes(&self) -> String { ... }
    fn sift_bytes_preserve_newlines(&self) -> String { ... }
}
Expand description

A trait containing all Vec<u8> whitespace-sifting functions.

Provided Methods§

Source

fn sift_bytes(&self) -> String

This removes duplicate whitespaces from a Vec<u8>. It supports the same whitespace definition as char::is_ascii_whitespace.

Source

fn sift_bytes_preserve_newlines(&self) -> String

This removes duplicate whitespaces from a Vec<u8>. It preserves deduplicated newlines.

Implementors§