pub trait Encode {
// Required methods
fn encode<E>(self) -> E::EncodeOutput
where Self: Encodable<E>,
E: Encoding;
fn decode<E>(self) -> E::DecodeOutput
where Self: Decodable<E>,
E: Encoding;
}
pub trait Encode {
// Required methods
fn encode<E>(self) -> E::EncodeOutput
where Self: Encodable<E>,
E: Encoding;
fn decode<E>(self) -> E::DecodeOutput
where Self: Decodable<E>,
E: Encoding;
}