Struct PgsWdsSegment Copy item path Source pub struct PgsWdsSegment {
pub header: PgsSegmentHeader ,
pub number_of_windows: u8 ,
pub windows: Vec <PgsWdsSegmentWindowDefinition >,
}Expand description Represents a Window Definition Segment (WDS) in a Presentation Graphic Stream (PGS).
The PgsWdsSegment structure contains information about multiple windows used for displaying subtitles.
Each window is defined by its ID, position, and size.
Parses a PgsWdsSegment from raw data.
§ Parameters
header: The segment header.
data: Raw byte data containing the segment information.
§ Returns
Ok(Rc<PgsWdsSegment>): A reference-counted pointer to the parsed PgsWdsSegment.
Err(Error): An error if the data is invalid or cannot be parsed.
Formats the value using the given formatter.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.