| 1 | #[cfg(all(not(target_arch = "wasm32"), feature = "image"))] |
| 2 | use imagerust-analyzer cargo image 0.25.10 crate/::ImageErrorrust-analyzer cargo image 0.25.10 error/ImageError#; |
| 3 | |
| 4 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 5 | /// Indicates some error occurs within the bitmap backend |
| 6 | pub enum BitMapBackendErrorrust-analyzer cargo plotters-bitmap 0.3.7 error/BitMapBackendError# { |
| 7 | /// The buffer provided is invalid, for example, wrong pixel buffer size |
| 8 | InvalidBufferrust-analyzer cargo plotters-bitmap 0.3.7 error/BitMapBackendError#InvalidBuffer#, |
| 9 | /// Some IO error occurs while the bitmap manipulation |
| 10 | IOErrorrust-analyzer cargo plotters-bitmap 0.3.7 error/BitMapBackendError#IOError#(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#), |
| 11 | #[cfg(all(feature = "gif", not(target_arch = "wasm32"), feature = "image"))] |
| 12 | GifEncodingErrorrust-analyzer cargo plotters-bitmap 0.3.7 error/BitMapBackendError#GifEncodingError#(gifrust-analyzer cargo gif 0.14.2 crate/::EncodingErrorrust-analyzer cargo gif 0.14.2 encoder/EncodingError#), |
| 13 | #[cfg(all(not(target_arch = "wasm32"), feature = "image"))] |
| 14 | /// Image encoding error |
| 15 | ImageErrorrust-analyzer cargo plotters-bitmap 0.3.7 error/BitMapBackendError#ImageError#(ImageErrorrust-analyzer cargo image 0.25.10 error/ImageError#), |
| 16 | } |
| 17 | |
| 18 | impl stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for BitMapBackendErrorrust-analyzer cargo plotters-bitmap 0.3.7 error/BitMapBackendError# { |
| 19 | fn fmtrust-analyzer cargo plotters-bitmap 0.3.7 error/impl#[BitMapBackendError][Display]fmt().(&self, f: &mut stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# { |
| 20 | writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "{:?}", self) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | impl stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for BitMapBackendErrorrust-analyzer cargo plotters-bitmap 0.3.7 error/BitMapBackendError# {} |