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

Entrypoint for parsing Imperator saves

Only consumes enough data to determine encoding of the file

Implementations

Creates a Imperator 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

Parses the entire file

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

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.