Enum pdf::enc::PredictorType
source · #[repr(u8)]pub enum PredictorType {
NoFilter = 0,
Sub = 1,
Up = 2,
Avg = 3,
Paeth = 4,
}
Variants§
Implementations§
source§impl PredictorType
impl PredictorType
sourcepub fn from_u8(n: u8) -> Result<PredictorType>
pub fn from_u8(n: u8) -> Result<PredictorType>
u8 -> Self. Temporary solution until Rust provides a canonical one.
Trait Implementations§
source§impl Clone for PredictorType
impl Clone for PredictorType
source§fn clone(&self) -> PredictorType
fn clone(&self) -> PredictorType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PredictorType
impl Debug for PredictorType
source§impl PartialEq for PredictorType
impl PartialEq for PredictorType
source§fn eq(&self, other: &PredictorType) -> bool
fn eq(&self, other: &PredictorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PredictorType
impl Eq for PredictorType
impl StructuralEq for PredictorType
impl StructuralPartialEq for PredictorType
Auto Trait Implementations§
impl RefUnwindSafe for PredictorType
impl Send for PredictorType
impl Sync for PredictorType
impl Unpin for PredictorType
impl UnwindSafe for PredictorType
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.