converter_buddy 0.1.0

File format conversion library. Provides conversion utilities between files with different formats.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::info;
use super::Format;
use once_cell::sync::Lazy;

pub fn from_extension(ext: &str) -> Option<Format> {
    info::LIST
        .iter()
        .find(|info| info.extensions.contains(&ext))
        .map(|info| Lazy::force(info).format)
}