Trait matroska::Parseable

source ·
pub trait Parseable {
    type Output;

    const ID: u32;

    // Required method
    fn parse<R: Read>(
        r: &mut R,
        size: u64
    ) -> Result<Self::Output, MatroskaError>;
}
Expand description

An element which can be parsed from the Matroska stream

Required Associated Types§

source

type Output

What to parse from the stream, such as ourself or a Vec of ourselves

Required Associated Constants§

source

const ID: u32

Our Matroska element ID

Required Methods§

source

fn parse<R: Read>(r: &mut R, size: u64) -> Result<Self::Output, MatroskaError>

Performs the actual parsing

Implementors§

source§

impl Parseable for Attachment

§

type Output = Vec<Attachment, Global>

source§

const ID: u32 = 423_732_329u32

source§

impl Parseable for ChapterEdition

§

type Output = Vec<ChapterEdition, Global>

source§

const ID: u32 = 272_869_232u32

source§

impl Parseable for Info

§

type Output = Info

source§

const ID: u32 = 357_149_030u32

source§

impl Parseable for Tag

§

type Output = Vec<Tag, Global>

source§

const ID: u32 = 307_544_935u32

source§

impl Parseable for Track

§

type Output = Vec<Track, Global>

source§

const ID: u32 = 374_648_427u32