Skip to main content

SyntaxDescribe

Trait SyntaxDescribe 

Source
pub trait SyntaxDescribe {
    // Required method
    fn describe<W: SyntaxWrite>(&self, w: &mut W) -> Result<(), W::Error>;
}
Expand description

Trait for types that can describe their MPEG syntax structure.

Producers implement this trait on wrapper structs that capture parsed data and any needed context, then call methods on the provided SyntaxWrite renderer to emit the syntax structure and field values.

Required Methods§

Source

fn describe<W: SyntaxWrite>(&self, w: &mut W) -> Result<(), W::Error>

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§