hayro-interpret 0.8.0

A crate for interpreting PDF files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::ToRgb;

#[derive(Debug, Clone)]
pub(crate) struct DeviceRgb;

impl ToRgb for DeviceRgb {
    fn convert(&self, input: &[u8], output: &mut [u8]) -> Option<()> {
        output.copy_from_slice(input);

        Some(())
    }

    fn convert_in_place(&self, _input: &mut [u8]) -> Option<()> {
        Some(())
    }
}