pub enum PythonDitherInput {
None,
Integer(u32),
Name(String),
Invalid(String),
}Expand description
Host-neutral Python-facing dither input.
Variants§
None
No dither argument was supplied.
Integer(u32)
Python integer enum; zero disables dithering and non-zero selects Floyd-Steinberg.
Name(String)
Python string, which Pillow rejects for this entry point.
Invalid(String)
A value of another host type. The type name is used in Pillow’s compatibility diagnostic.
Trait Implementations§
Source§impl Clone for PythonDitherInput
impl Clone for PythonDitherInput
Auto Trait Implementations§
impl Freeze for PythonDitherInput
impl RefUnwindSafe for PythonDitherInput
impl Send for PythonDitherInput
impl Sync for PythonDitherInput
impl Unpin for PythonDitherInput
impl UnsafeUnpin for PythonDitherInput
impl UnwindSafe for PythonDitherInput
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