Skip to main content

detect_format_kind

Function detect_format_kind 

Source
pub fn detect_format_kind(path: &Path) -> FileFormatKind
Expand description

Resolves the unified formatting strategy for path based on filename and extension.

§Arguments

  • &Path - File path to classify.

§Returns

  • FileFormatKind - Matched formatting strategy or FileFormatKind::Unsupported.