pub enum SaveFormat {
Lz4Compressed,
PlaintextJson,
}Expand description
Detected format of a save file’s raw bytes.
Variants§
Lz4Compressed
Standard NMS format (2002+): sequential LZ4 blocks with 16-byte headers.
PlaintextJson
Uncompressed JSON (first two bytes are 0x7B 0x22, i.e. {").
Trait Implementations§
Source§impl Clone for SaveFormat
impl Clone for SaveFormat
Source§fn clone(&self) -> SaveFormat
fn clone(&self) -> SaveFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SaveFormat
impl Debug for SaveFormat
Source§impl PartialEq for SaveFormat
impl PartialEq for SaveFormat
impl Copy for SaveFormat
impl Eq for SaveFormat
impl StructuralPartialEq for SaveFormat
Auto Trait Implementations§
impl Freeze for SaveFormat
impl RefUnwindSafe for SaveFormat
impl Send for SaveFormat
impl Sync for SaveFormat
impl Unpin for SaveFormat
impl UnsafeUnpin for SaveFormat
impl UnwindSafe for SaveFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more