pub enum Filter {
None,
Sub,
Up,
Average,
Paeth,
}Expand description
A PNG scanline filter (§9.2).
Variants§
None
No transformation.
Sub
Difference from the pixel to the left.
Up
Difference from the pixel above.
Average
Difference from the mean of left and above.
Paeth
Difference from the Paeth predictor of left, above and above-left.
Implementations§
Trait Implementations§
impl Copy for Filter
impl Eq for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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