Skip to main content

looks_like_cim_dist

Function looks_like_cim_dist 

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

Whether a document reads as distribution CIM: its header passes looks_like_cim_dist_header, and it holds at least one per phase or distribution only class anywhere.

The check scans bytes, so it never requires the document to be UTF-8.