Skip to main content

AnyFormatItem

Trait AnyFormatItem 

Source
pub trait AnyFormatItem {
    // Required method
    fn parse_item<'a>(
        &self,
        parsed: &mut Parsed,
        input: &'a [u8],
    ) -> Result<&'a [u8], ParseFromDescription>;
}
Available on crate feature parsing only.
Expand description

A trait to allow parse_item to be generic.

Required Methods§

Source

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl AnyFormatItem for BorrowedFormatItem<'_>

Source§

impl AnyFormatItem for OwnedFormatItem

Available on crate feature alloc only.