summaryrefslogtreecommitdiffstats
path: root/src/loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader.rs')
-rw-r--r--src/loader.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/loader.rs b/src/loader.rs
deleted file mode 100644
index 9aae9c8..0000000
--- a/src/loader.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-/// Helper trait to load something and then postprocess it
-///
-/// the load() function might fail, but the PostProcessor::postprocess() function should never fail.
-pub trait Loader {
- type Output: Sized;
- type Error: Sized;
- type PostProcessedOutput: Sized;
- type PostProcessor: PostProcessor<Self::Output, Output = Self::PostProcessedOutput>;
-
- fn load(self) -> Result<Self::Output, Self::Error>;
- fn postprocessor(&self, load_name: String) -> Self::PostProcessor;
-}
-
-pub trait PostProcessor<Object: Sized> {
- type Output: Sized;
-
- fn postprocess(&self, o: Object) -> Self::Output;
-}
-