1 2 3 4 5 6
use std::io::{Read}; pub trait Decoder { fn deserialize<Type, R: Read>(&self, stream: &mut R) -> Vec<Type>; }