1 2 3 4 5 6 7 8 9
use crate::error::CarError; pub trait Decoder<T> { fn decode(&self) -> Result<T, CarError>; } pub trait Encoder<T> { fn encode(&self) -> Result<T, CarError>; }