1 2 3 4 5
use std::error::Error; pub trait Chain<E: Error> { fn parse(data: &Vec<u8>) -> Result<String, E>; }