Trait minnow::Encodeable
source · [−]pub trait Encodeable {
fn encode<W>(&self, visitor: &mut EncodeVisitor<'_, W>) -> Result<()>
where
W: BitWrite;
fn decode<R>(visitor: &mut DecodeVisitor<R>) -> Result<Self>
where
R: BitRead,
Self: Sized;
fn encode_bytes(&self) -> Result<Vec<u8>> { ... }
fn decode_bytes(bytes: &[u8]) -> Result<Self>
where
Self: Sized,
{ ... }
}