Trait minnow::EncodeableCustom
source · [−]pub trait EncodeableCustom {
type Config;
fn encode_with_config<W>(
&self,
visitor: &mut EncodeVisitor<'_, W>,
config: Self::Config
) -> Result<()>
where
W: BitWrite;
fn decode_with_config<R>(
visitor: &mut DecodeVisitor<R>,
config: Self::Config
) -> Result<Self>
where
R: BitRead,
Self: Sized;
fn encode_bytes_with_config(&self, config: Self::Config) -> Result<Vec<u8>> { ... }
fn decode_bytes_with_config(
bytes: &[u8],
config: Self::Config
) -> Result<Self>
where
Self: Sized,
{ ... }
}