Skip to main content

count_lines

Function count_lines 

Source
pub fn count_lines(data: &[u8]) -> u64
Expand description

Count newlines using SIMD-accelerated memchr. GNU wc counts newline bytes (\n), not logical lines.