Struct PgsParser
Source pub struct PgsParser<'a> { }
Expand description
A parser for PGS files.
This struct is responsible for parsing PGS files into segments and creating display sets from those segments.
§Fields
sup_file_path: The path to the SUP file to be parsed.
segments: A vector storing the parsed PGS segments.
display_sets: A vector of display sets created from the parsed segments.
Returns a reference to the vector of display sets.
§Returns
A reference to the Vec<PgsDisplaySet>.
Parses a PGS file and creates display sets.
§Arguments
sup_file_path - The path to the SUP file to be parsed.
§Returns
A Result containing either the PgsParser instance or an Error if the parsing fails.
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.