Trait yrs::updates::decoder::Decode[][src]

pub trait Decode: Sized {
    fn decode<D: Decoder>(decoder: &mut D) -> Self;

    fn decode_v1(data: &[u8]) -> Self { ... }
}
Expand description

A trait that can be implemented by any other type in order to support lib0 decoding capability.

Required methods

Provided methods

Helper function for decoding 1st version of lib0 encoding.

Implementations on Foreign Types

Implementors