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§
Sourcefn parse_bytes(input: &[u8]) -> ParseResult<'_, InstrumentationProfile>
fn parse_bytes(input: &[u8]) -> ParseResult<'_, InstrumentationProfile>
Parse the profile no lazy parsing here!
Sourcefn parse_header(input: &[u8]) -> ParseResult<'_, Self::Header>
fn parse_header(input: &[u8]) -> ParseResult<'_, Self::Header>
Parses a header
Sourcefn has_format(input: impl Read) -> bool
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.