diff options
| author | zirkonya <zirkonya@iridium.lan> | 2026-08-16 15:01:43 +0200 |
|---|---|---|
| committer | zirkonya <zirkonya@iridium.lan> | 2026-08-16 15:01:43 +0200 |
| commit | 7297bbb864778814ed59e99d0d6b05853704f06d (patch) | |
| tree | b685e39344de04dc9ef6c103d11ec0d50d962cb1 /src/codec.rs | |
| parent | 7cfd669783c310747debcfca7106e6162f492340 (diff) | |
change context representation
Diffstat (limited to 'src/codec.rs')
| -rw-r--r-- | src/codec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec.rs b/src/codec.rs index fcb18a3..778001f 100644 --- a/src/codec.rs +++ b/src/codec.rs @@ -4,5 +4,5 @@ pub mod decode; pub mod encode; pub mod error; -pub trait Codec: Encode + Decode {} -impl<T> Codec for T where T: Encode + Decode {} +pub trait Codec<Ctx>: Encode<Ctx> + Decode<Ctx> {} +impl<Ctx, T> Codec<Ctx> for T where T: Encode<Ctx> + Decode<Ctx> {} |
