Skip to main content

looks_like_text

Function looks_like_text 

Source
fn looks_like_text(head: &[u8]) -> bool
Expand description

Text if the start is valid UTF-8 (allowing a code point cut at the end) with no NUL bytes.