pub enum Encoding {
Text,
TextZip,
BinaryZip,
Binary,
}
Expand description
Describes the format of the save before decoding
Variants
Text
Save is encoded with the debug plaintext format:
- a save id line
- uncompressed text gamestate
TextZip
Save is encoded with the standard format:
- a save id line
- plaintext header
- zip with compressed plaintext gamestate
BinaryZip
Save is encoded in the binary zip format
- a save id line
- binary header
- zip with compressed binary gamestate
Binary
Save is encoded in the binary format
- a save id line
- uncompressed binary gamestate
Trait Implementations
impl Copy for Encoding
impl Eq for Encoding
impl StructuralEq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more