pub trait GranularImageReader:
Send
+ Sync
+ Debug {
// Required method
fn read_images<'a>(
&self,
paths: impl Iterator<Item = &'a str>,
) -> Result<Vec<ImageBuffer<Rgb<u8>, Vec<u8>>>, OCRError>;
// Provided method
fn validate_paths<'a>(
&self,
paths: impl Iterator<Item = &'a str>,
) -> Result<(), OCRError> { ... }
}Expand description
Trait for image reading and I/O operations.
This trait handles loading images from various sources (file paths, URLs, memory) and converting them to a standard RGB format for processing.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".