pub trait Decode: Sized {
fn decode<D: Decoder>(decoder: &mut D) -> Self;
fn decode_v1(data: &[u8]) -> Self { ... }
fn decode_v2(data: &[u8]) -> Self { ... }
}
Expand description
A trait that can be implemented by any other type in order to support lib0 decoding capability.