pub trait AnyFormatItem {
// Required method
fn parse_item<'a>(
&self,
parsed: &mut Parsed,
input: &'a [u8],
) -> Result<&'a [u8], ParseFromDescription>;
}
Expand description
A trait to allow parse_item
to be generic.
Required Methods§
sourcefn parse_item<'a>(
&self,
parsed: &mut Parsed,
input: &'a [u8],
) -> Result<&'a [u8], ParseFromDescription>
fn parse_item<'a>( &self, parsed: &mut Parsed, input: &'a [u8], ) -> Result<&'a [u8], ParseFromDescription>
Parse a single item, returning the remaining input on success.