pub trait TileDecoder: Send + Sync {
// Required method
fn decode(&self, bytes: &[u8]) -> Result<DecodedImage, TileError>;
}Expand description
Decodes raw HTTP response bytes into a DecodedImage.
Implementations bridge the engine to an image decoding library
(e.g. the image crate, stb_image, browser canvas, etc.)
without adding a hard dependency to rustial-engine.