Trait method lrs::parse::Parsable::parse_bytes

Tries to parse a byte slice as an object of this type.

Syntax

fn parse_bytes(bytes: &[u8]) -> Result<Self, Errno>

Arguments

NameDescription
bytes

The bytes to be parsed.

Return value

Returns the object.

Remarks

This fails if the whole sequence cannot be parsed, that is, if parse_bytes_init returns that not all of the bytes were parsed.