pub struct Eu4File<'a> { /* private fields */ }
Expand description

Entrypoint for parsing EU4 saves

EU4 saves are files that contain a “EU4txt” or “EU4bin” header or contains files within a zip.

Only consumes enough data to determine encoding of the file

Implementations

Creates an EU4 file from a slice of data

Returns the detected decoding of the file

Returns the size of the file

The size includes the inflated size of the zip

A convenience method for creating Eu4Save

Parses the entire file

If the file is a zip, the zip contents will be inflated into the zip sink before being parsed

Iterates through the individual entries of the Eu4 file

Non-zips will yield a single entry

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. 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.