dope 0.12.0

The manifold runtime
Documentation
1
2
3
4
5
6
7
8
use o3::buffer::Shared;

pub trait Codec {
    type Head;
    type ParseState: Default;

    fn parse(&self, state: &mut Self::ParseState, buf: &Shared) -> Option<(Self::Head, usize)>;
}