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