FormatInfo

Trait FormatInfo 

Source
pub trait FormatInfo {
    // Required method
    fn file_extension(&self) -> &str;

    // Provided method
    fn is_utf8(&self) -> bool { ... }
}
Expand description

Information about a specific format, such as its file extension

Required Methods§

Source

fn file_extension(&self) -> &str

Returns the file extension associated with this format (without the dot)

Provided Methods§

Source

fn is_utf8(&self) -> bool

Returns whether the format is UTF-8 based (e.g. JSON, YAML)

Implementors§