imbuf 0.3.3

Image buffers that abstract over underlying storage (Vec, Arc, or custom backends). Features copy-on-write semantics for efficient memory usage.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(feature = "image_0_25")]
mod image_0_25;

#[cfg(feature = "image_0_25")]
pub use image_0_25::*;

#[derive(Debug, thiserror::Error)]
#[error("The image has a wrong length. Expected {expected}, got {actual}")]
#[cfg(feature = "image_0_25")]
pub struct IncompatibleBufferSize {
    pub expected: usize,
    pub actual: usize,
}