1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
extern crate byteorder;
extern crate crc;

pub mod testing;
pub mod wal;

use std::io;
use std::io::{Read, Write};

pub trait Serializable: Sized {
    fn serialize<W: Write>(&self, bytes: &mut W) -> io::Result<()>;
    fn deserialize<R: Read>(bytes: &mut R) -> io::Result<Self>;
}