Function chemfiles::formats_list[][src]

pub fn formats_list() -> Vec<FormatMetadata>
Expand description

Get the list of formats known by chemfiles, as well as all associated metadata.

Example

let formats = chemfiles::formats_list();
println!("chemfiles supports {} formats:", formats.len());
for format in &formats {
    println!(
        "   {:<15} {}",
        format.name,
        format.extension.as_deref().unwrap_or("")
    );
}