summaryrefslogtreecommitdiffstats
path: root/src/format.rs
blob: c32dbae90da498686aaadc14badc3036420c91c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use std::{collections::HashMap, error::Error};

use crate::value::Value;
use crate::map::Map;

pub trait Format {
    fn parse(
        &self,
        uri: Option<&String>,
        text: &str,
    ) -> Result<Map<String, Value>, Box<dyn Error + Send + Sync>>;
}