Move header types/traits outside own module
This commit is contained in:
parent
647d5611c7
commit
380d58a3c0
1 changed files with 24 additions and 28 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue