Trait objects::Parser

source ·
pub trait Parser: Sized {
    type Error;

    // Required method
    fn parse<R: Read>(buf: R) -> Result<Self, Self::Error>;
}
Expand description

An parser type can parse objects from raw bytes of encoded data.

Required Associated Types§

Required Methods§

source

fn parse<R: Read>(buf: R) -> Result<Self, Self::Error>

Parses from raw bytes of a specific Document Type into specific object, or returns an error.

Object Safety§

This trait is not object safe.

Implementors§