Skip to main content

default_formats

Function default_formats 

Source
pub fn default_formats() -> Formats
Available on crate features json or toml or yaml only.
Expand description

The registry Input::open reads through: what set_default_formats installed, or else Formats::builtin.

A caller that reads a file with a format it picked by name uses it to find that name, so it accepts what Input::open accepts.