pub trait SegmentDef<'a>: Parse<'a, Error = Error> {
const SEGMENT_TYPE: u8;
const NAME: &'static str;
}Expand description
Implemented by every typed subtitling segment; drives
crate::any::AnySegment dispatch. SEGMENT_TYPE is the wire
segment_type this type parses.
Required Associated Constants§
Sourceconst SEGMENT_TYPE: u8
const SEGMENT_TYPE: u8
Wire segment_type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".