Skip to main content

is_binary

Function is_binary 

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

Returns true if the byte slice appears to be binary content.

Uses the same heuristic as git: any NUL byte means binary.