summaryrefslogtreecommitdiffstats
path: root/src/file/source/mod.rs
blob: 4d9950f13006871d6cb4a6a1f28e047fe66011a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod file;
pub mod string;

use std::fmt::Debug;
use std::error::Error;

use source::Source;
use super::FileFormat;

/// Describes where the file is sourced
pub trait FileSource: Debug + Clone {
    fn resolve(
        &self,
        format_hint: Option<FileFormat>,
    ) -> Result<(Option<String>, String, FileFormat), Box<Error + Send + Sync>>;
}