mpeg_syntax_dump/describe.rs
1use crate::write::SyntaxWrite;
2
3/// Trait for types that can describe their MPEG syntax structure.
4///
5/// Producers implement this trait on wrapper structs that capture parsed
6/// data and any needed context, then call methods on the provided
7/// `SyntaxWrite` renderer to emit the syntax structure and field values.
8pub trait SyntaxDescribe {
9 fn describe<W: SyntaxWrite>(&self, w: &mut W) -> Result<(), W::Error>;
10}