Skip to main content

Resizer

Trait Resizer 

Source
pub trait Resizer: Send + Sync {
    // Required method
    fn resize(
        &self,
        image: &[u8],
        content_type: &ContentType,
        width: u32,
    ) -> Result<Resized>;
}
Expand description

The app’s: the framework decodes no images, so it brings no image library.

Required Methods§

Source

fn resize( &self, image: &[u8], content_type: &ContentType, width: u32, ) -> Result<Resized>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§