use std::fs::File;
use std::path::PathBuf;
use anyhow::Result;
use crate::doc_types::Doc;
pub mod toml;
pub trait ConfigParser {
fn parse_str(&self, string: String) -> Result<Doc>;
fn parse_path(&self, path: PathBuf) -> Result<Doc>;
fn parse_file(&self, file: File) -> Result<Doc>;
fn match_filename(&self, filename: &str) -> bool;
}