summaryrefslogtreecommitdiff
path: root/src/codec.rs
blob: 778001f33c809e762b25820722f8d95b45602e56 (plain)
1
2
3
4
5
6
7
8
use crate::codec::{decode::Decode, encode::Encode};

pub mod decode;
pub mod encode;
pub mod error;

pub trait Codec<Ctx>: Encode<Ctx> + Decode<Ctx> {}
impl<Ctx, T> Codec<Ctx> for T where T: Encode<Ctx> + Decode<Ctx> {}