use std::io::{self, Read}; pub trait Decode { fn decode(reader: &impl Read) -> io::Result where Self: Sized; }