pub fn compare_tables(
original: &StartposTables,
extracted: &ExtractedTables,
schema: &Schema,
) -> Result<Vec<TableComparison>>Expand description
Compares the tables extracted from a startpos with the tables it was built from.
§Arguments
original- The tables the startpos was built from. Rows of other campaigns are left out.extracted- The tables extracted from the startpos.schema- Schema of the game, to type the extracted values.
§Returns
The comparison of each extracted table.
§Errors
Returns an error if the extracted values don’t fit the schema, or a table lacks a column.