Trait x11rb::x11_utils::TryParse[][src]

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