Skip to content

detect

Defined in: elements.rs:239

fn detect(text: &str) -> [Option<Format>](https://doc.rust-lang.org/std/option/enum.Option.html)

Sniff the element-set format of text (cheap structural heuristic, no full parse): leading { or [ → JSON (a single OMM object, or a 1-element array), leading < → XML, a 1 /2 line pair → TLE, otherwise CCSDS keyword-value → KVN. A leading UTF-8 BOM is ignored. None if nothing matches.