blockless_car/
codec.rs

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