Trait WritePng

Source
pub trait WritePng {
    // Required method
    fn write(&self, f: &mut impl Write) -> Result<()>;
}
Available on crate feature save only.
Expand description

Write a png image.

Required Methods§

Source

fn write(&self, f: &mut impl Write) -> Result<()>

Write this png image.

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.

Implementors§

Source§

impl<T: AsRef<[u8]>> WritePng for Image<T, 1>

Source§

impl<T: AsRef<[u8]>> WritePng for Image<T, 2>

Source§

impl<T: AsRef<[u8]>> WritePng for Image<T, 3>

Source§

impl<T: AsRef<[u8]>> WritePng for Image<T, 4>