Trait InstrProfReader

Source
pub trait InstrProfReader {
    type Header;

    // Required methods
    fn parse_bytes(input: &[u8]) -> ParseResult<'_, InstrumentationProfile>;
    fn parse_header(input: &[u8]) -> ParseResult<'_, Self::Header>;
    fn has_format(input: impl Read) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn parse_bytes(input: &[u8]) -> ParseResult<'_, InstrumentationProfile>

Parse the profile no lazy parsing here!

Source

fn parse_header(input: &[u8]) -> ParseResult<'_, Self::Header>

Parses a header

Source

fn has_format(input: impl Read) -> bool

Detects that the bytes match the current reader format if it can’t read the format it will return false

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§