Skip to main content

Reader

Trait Reader 

Source
pub trait Reader {
    const FORMAT: Format;

    // Required method
    fn read(input: &InputBuffer, options: &ReadOptions) -> ReadResult;
}
Expand description

A reader for one format.

Required Associated Constants§

Source

const FORMAT: Format

The format this reads.

Required Methods§

Source

fn read(input: &InputBuffer, options: &ReadOptions) -> ReadResult

Reads a structure.

§Errors

Returns the findings that stopped the read.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§