Skip to main content

filter

Function filter 

Source
pub fn filter(content: &str, lang: Language, level: CompressionLevel) -> String
Expand description

Apply code-aware filtering. For Data or Unknown languages, returns input unchanged to avoid corrupting JSON/YAML/TOML (rtk issue #464).