Skip to main content

detect_from_bytes

Function detect_from_bytes 

Source
pub fn detect_from_bytes(bytes: &[u8]) -> Option<PrettifyMode>
Expand description

Detect from leading bytes. Returns None if nothing matches. Cheap; inspects up to ~512 bytes.