Skip to main content

classify_with

Function classify_with 

Source
pub fn classify_with(
    registry: &TypeRegistry,
    path: &Path,
    prefix: Option<&[u8]>,
) -> Classification
Expand description

Classify against a specific registry, with an optional bounded content prefix.

Known exact-name and ordinary extension matches avoid deep detection. The .h ambiguity and generated-file flag alone inspect their documented bounded prefix. Callers may pass a larger buffer; all content-dependent helpers enforce smaller internal limits.