micropdf 0.17.0

A pure Rust PDF library - A pure Rust PDF library with fz_/pdf_ API compatibility
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Colorspace — compatibility shim.
//!
//! Re-exports from `crate::micropdf::colorspace`.

pub use crate::micropdf::colorspace::MpColorspace as Colorspace;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_shim_reexport() {
        let cs = Colorspace::device_rgb();
        assert_eq!(cs.name(), "DeviceRGB");
        assert_eq!(cs.n(), 3);
    }
}