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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".