1 2 3 4 5 6 7 8 9
use crate::then::Then; pub trait Encoder: Sized { type Input; type Output; type Error; fn encode(self, output: &mut Self::Output) -> Then<Self, Self::Input, Self::Error>; }
1 2 3 4 5 6 7 8 9
use crate::then::Then; pub trait Encoder: Sized { type Input; type Output; type Error; fn encode(self, output: &mut Self::Output) -> Then<Self, Self::Input, Self::Error>; }