diff options
author | Ryan Leckey <ryan@launchbadge.com> | 2017-06-01 23:22:04 -0700 |
---|---|---|
committer | Ryan Leckey <ryan@launchbadge.com> | 2017-06-01 23:22:04 -0700 |
commit | bfc44c331a77d8c341c076e72df5ed0b56fbd422 (patch) | |
tree | c757723957be6b880d1e0d8d26ae2b1c9c606ed2 /src/file/source/mod.rs | |
parent | 4357840e95f3646494ddeea4aae12425dfab2db8 (diff) |
Move things around and get some tests in place
Diffstat (limited to 'src/file/source/mod.rs')
-rw-r--r-- | src/file/source/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/file/source/mod.rs b/src/file/source/mod.rs new file mode 100644 index 0000000..4aeafa5 --- /dev/null +++ b/src/file/source/mod.rs @@ -0,0 +1,12 @@ +pub mod file; +pub mod string; + +use std::error::Error; + +use source::Source; +use super::FileFormat; + +/// Describes where the file is sourced +pub trait FileSource { + fn resolve(&self, format_hint: Option<FileFormat>) -> Result<(Option<String>, String), Box<Error>>; +} |