pub enum ColorMode {
BlackAndWhite1,
Grayscale8,
Grayscale16,
RGB24,
RGB48,
}Variants§
BlackAndWhite1
Binary monochrome scanning. Valid only for certain DocumentFormat/DocumentFormatExt values - like ‘application/octet-stream’, ‘image/tiff’ that can support single-bit scans. For document format not supporting BlackAndWhite1 color mode, scanner SHOULD report a 409 Conflict error.
Grayscale8
8-bit grayscale
Grayscale16
16-bit grayscale
RGB24
8-bit per channel RGB
RGB48
16-bit per channel RGB
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ColorMode
impl<'de> Deserialize<'de> for ColorMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ColorMode
impl StructuralPartialEq for ColorMode
Auto Trait Implementations§
impl Freeze for ColorMode
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnwindSafe for ColorMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.