Skip to main content

detect

Function detect 

Source
pub fn detect(text: &str) -> Result<Format, String>
Expand description

Work out which app wrote this file.

Errors name the app and what to do, rather than saying “unrecognised” — the encrypted variants are the common case for a user who has just pressed “export” in an app that defaults to encrypting, and they are all detectable.