Enum Predictor
#[non_exhaustive]
#[repr(u16)]
pub enum Predictor
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
impl Predictor
const fn from_u16(val: u16) -> Option<Self>const fn to_u16(&self) -> u16
Trait Implementations
impl Clone for Predictor
fn clone(&self) -> Predictor
impl Copy for Predictor
impl Debug for Predictor
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Predictor
impl Hash for Predictor
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for Predictor
fn eq(&self, other: &Predictor) -> bool
impl StructuralPartialEq for Predictor
impl TiffValue for Predictor
const BYTE_LEN: u8 = <u16 as TiffValue>::BYTE_LEN;const FIELD_TYPE: Type = Type::SHORT;fn count(&self) -> usizefn data(&self) -> Cow<'_, [u8]>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Predictor
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Predictor
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for Predictor
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Predictor
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Predictor
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Predictor
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Predictor
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for Predictor
where
T: ?Sized,
impl<T> ToOwned for Predictor
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Predictor
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Predictor
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Predictor
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>