pub trait Thumbnailer: Send + Sync {
// Required methods
fn made_with(&self) -> &str;
fn reads(&self, media_type: &str) -> bool;
fn make(&self, picture: &[u8]) -> Option<Thumbnail>;
}Expand description
What reads pictures and makes their thumbnails, which a program brings: nib and
apps on a computer bring decoders in memory-safe Rust. An app on Android brings none:
it makes thumbnails with the phone’s own decoders and hands them over, through
Library::record_thumbnails_made. It runs on several threads at once.
Required Methods§
Sourcefn made_with(&self) -> &str
fn made_with(&self) -> &str
How it makes thumbnails, as each records it, such as nibkeep 1: who makes them, and
the version of their way, which counts up when the way changes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".