Trait method lrs::parse::Parsable::parse_bytes_init

Tries to parse an initial sequence of bytes as an object of this type.

Syntax

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

Arguments

NameDescription
bytes

The bytes to be parsed.

Return value

Returns the object and the number of bytes consumed.