diff options
| author | zirkonya <zirkonya@iridium.lan> | 2026-07-25 19:45:02 +0200 |
|---|---|---|
| committer | zirkonya <zirkonya@iridium.lan> | 2026-07-25 19:45:02 +0200 |
| commit | 08c8e9d37f3e0f9a82c3792c1927967631de73cd (patch) | |
| tree | 6d97d62b7253280472e5f5818f7d45df4f5038ba /src/codec.rs | |
| parent | 467a22d3c955bec752f9d98cf0829e05a150721a (diff) | |
Add README LICENSE and setup encode & decode trait
Diffstat (limited to 'src/codec.rs')
| -rw-r--r-- | src/codec.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/codec.rs b/src/codec.rs new file mode 100644 index 0000000..f11a88e --- /dev/null +++ b/src/codec.rs @@ -0,0 +1,7 @@ +use crate::codec::{decode::Decode, encode::Encode}; + +pub mod decode; +pub mod encode; + +pub trait Codec: Encode + Decode {} +impl<T> Codec for T where T: Encode + Decode {} |
