pub trait TryParse: Sized {
    fn try_parse(value: &[u8]) -> Result<(Self, &[u8]), ParseError>;
}
Expand description

A type implementing this trait can be parsed from some raw bytes.

Required Methods

Try to parse the given values into an instance of this type.

If parsing is successful, an instance of the type and a slice for the remaining data should be returned. Otherwise, an error is returned.

Implementations on Foreign Types

Implementors