1 2 3 4 5 6 7
use std::io::{self, Read}; pub trait Decode { fn decode(reader: &impl Read) -> io::Result<Self> where Self: Sized; }