wml2 0.0.23

Pure Rust multi-format image decoding and encoding library supporting JPEG, PNG, GIF, WebP, TIFF and PC-98 legacy formats (MAG, MAKI, PI, PIC)
Documentation
//! BMP-specific warning types.

use crate::warning::WarningKind;

#[derive(Debug)]
pub enum BMPWarningKind {
    OutOfMemory,
    DataCorruption,
    BufferOverrun,
}

#[allow(unused)]
impl WarningKind for BMPWarningKind {
    fn as_str(&self) -> &'static str {
        use BMPWarningKind::*;
        match self {
            OutOfMemory => "Out of memory",
            DataCorruption => "Data Corruption",
            BufferOverrun => "Buffer Overrun",
        }
    }
}