pub trait WritableImage<'img, WritableLayers>: Sized {
// Required method
fn write(self) -> WriteImageWithOptions<'img, WritableLayers, fn(_: f64)>;
}
Expand description
Enables an image to be written to a file. Call image.write()
where this trait is implemented.
Required Methods§
Sourcefn write(self) -> WriteImageWithOptions<'img, WritableLayers, fn(_: f64)>
fn write(self) -> WriteImageWithOptions<'img, WritableLayers, fn(_: f64)>
Create a temporary writer which can be configured and used to write the image to a file.
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.