pub enum FilterStrategy {
None,
Sub,
Up,
Average,
Paeth,
Fast,
Best,
}Expand description
Filter strategy for encoding.
Variants§
None
No filtering (fastest).
Sub
Use Sub filter only.
Up
Use Up filter only.
Average
Use Average filter only.
Paeth
Use Paeth filter only.
Fast
Fast heuristic selection (None, Sub, Up).
Best
Best compression (tries all filters).
Implementations§
Trait Implementations§
Source§impl Clone for FilterStrategy
impl Clone for FilterStrategy
Source§fn clone(&self) -> FilterStrategy
fn clone(&self) -> FilterStrategy
Returns a duplicate 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 FilterStrategy
impl Debug for FilterStrategy
Source§impl Default for FilterStrategy
impl Default for FilterStrategy
Source§impl PartialEq for FilterStrategy
impl PartialEq for FilterStrategy
impl Copy for FilterStrategy
impl Eq for FilterStrategy
impl StructuralPartialEq for FilterStrategy
Auto Trait Implementations§
impl Freeze for FilterStrategy
impl RefUnwindSafe for FilterStrategy
impl Send for FilterStrategy
impl Sync for FilterStrategy
impl Unpin for FilterStrategy
impl UnsafeUnpin for FilterStrategy
impl UnwindSafe for FilterStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more