Move header types/traits outside own module

This commit is contained in:
Matthias Beyer 2015-10-28 19:21:22 +01:00
parent 647d5611c7
commit 380d58a3c0

View file

@ -86,8 +86,6 @@ pub mod file {
}
}
pub mod header {
pub enum FileHeaderSpec {
Null,
Bool,
@ -112,10 +110,8 @@ pub mod file {
pub trait FileHeaderParser : Sized {
fn new(spec: &FileHeaderSpec) -> Self;
fn read(&self, string: &String) -> Result<FileHeaderData, super::ParserError>;
fn write(&self, data: &FileHeaderData) -> Result<String, super::ParserError>;
}
fn read(&self, string: &String) -> Result<FileHeaderData, ParserError>;
fn write(&self, data: &FileHeaderData) -> Result<String, ParserError>;
}
pub trait FileData : Sized {