summaryrefslogtreecommitdiff
path: root/src/codec/decode.rs
blob: 65f08b55afbcd477bbb8d892d84527041cd4ea56 (plain)
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;
}