Skip to main content

is_binary

Function is_binary 

Source
pub fn is_binary(bytes: &[u8]) -> bool
Expand description

Heuristic binary detection: NUL byte or >10% C0/C1 control chars (excluding \n, \t, \r) in the first 8 KiB.