pub trait Write {
type Input;
const ID_BYTES: [u8; 4];
const OUTPUT_VERSION: u32;
// Required method
fn write(self, input: Self::Input) -> Result<()>;
}Expand description
Contains logic for writing a specific file format.
Required Associated Constants§
Sourceconst OUTPUT_VERSION: u32
const OUTPUT_VERSION: u32
The version of the file format this writer will create.
Required Associated Types§
Required Methods§
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.