pub trait FileFormat: Serialize + for<'a> Deserialize<'a> {
const FORMAT: [u8; 8];
const EXTENSION: &'static str;
const VERSION: (u16, u16);
const COMPRESSION: Compression;
}Expand description
Trait for structures that can be serialized to and deserialized from files.
Required Associated Constants§
const FORMAT: [u8; 8]
const EXTENSION: &'static str
const VERSION: (u16, u16)
const COMPRESSION: Compression
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.