blf_lib_derivable/blf.rs
1use std::error::Error;
2use std::io::Read;
3
4pub mod chunks;
5pub mod s_blf_header;
6
7pub trait BlfFile {
8 fn write(&mut self) -> Result<Vec<u8>, Box<dyn Error>>;
9 fn write_file(&mut self, path: impl Into<String>) -> Result<(), Box<dyn Error>>;
10 fn read_file(path: &String) -> Result<Self, Box<dyn std::error::Error>> where Self: Sized;
11 fn read(reader: &mut dyn Read) -> Result<Self, Box<dyn std::error::Error>> where Self: Sized;
12
13}