1 2 3 4 5 6
#[derive(Debug, PartialEq, Clone)] pub enum Error { Known(&'static str), } pub type Res<'a, T> = Result<(&'a [u8], T), Error>;
1 2 3 4 5 6
#[derive(Debug, PartialEq, Clone)] pub enum Error { Known(&'static str), } pub type Res<'a, T> = Result<(&'a [u8], T), Error>;