#[non_exhaustive]#[repr(u16)]pub enum Predictor {
None = 1,
Horizontal = 2,
FloatingPoint = 3,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 1
No changes were made to the data
Horizontal = 2
The images’ rows were processed to contain the difference of each pixel from the previous one.
This means that instead of having in order [r1, g1. b1, r2, g2 ...] you will find
[r1, g1, b1, r2-r1, g2-g1, b2-b1, r3-r2, g3-g2, ...]
FloatingPoint = 3
Not currently supported
Implementations§
Trait Implementations§
Source§impl TiffValue for Predictor
impl TiffValue for Predictor
const BYTE_LEN: u8 = <u16 as TiffValue>::BYTE_LEN
const FIELD_TYPE: Type = Type::SHORT
fn count(&self) -> usize
Source§fn data(&self) -> Cow<'_, [u8]>
fn data(&self) -> Cow<'_, [u8]>
Access this value as an contiguous sequence of bytes.
If their is no trivial representation, allocate it on the heap.
fn bytes(&self) -> usize
impl Copy for Predictor
impl Eq for Predictor
impl StructuralPartialEq for Predictor
Auto Trait Implementations§
impl Freeze for Predictor
impl RefUnwindSafe for Predictor
impl Send for Predictor
impl Sync for Predictor
impl Unpin for Predictor
impl UnsafeUnpin for Predictor
impl UnwindSafe for Predictor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more