#[repr(u8)]pub enum DitherMode {
None = 0,
Burkes = 1,
Ordered = 2,
FloydSteinberg = 3,
Atkinson = 4,
Stucki = 5,
Sierra = 6,
SierraLite = 7,
JarvisJudiceNinke = 8,
}Expand description
Dithering algorithm. Integer values match OpenDisplay firmware conventions.
Variants§
None = 0
Burkes = 1
Ordered = 2
FloydSteinberg = 3
Atkinson = 4
Stucki = 5
Sierra = 6
SierraLite = 7
JarvisJudiceNinke = 8
Implementations§
Trait Implementations§
Source§impl Clone for DitherMode
impl Clone for DitherMode
Source§fn clone(&self) -> DitherMode
fn clone(&self) -> DitherMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DitherMode
Source§impl Debug for DitherMode
impl Debug for DitherMode
Source§impl Default for DitherMode
impl Default for DitherMode
Source§fn default() -> DitherMode
fn default() -> DitherMode
Returns the “default value” for a type. Read more
impl Eq for DitherMode
Source§impl PartialEq for DitherMode
impl PartialEq for DitherMode
Source§fn eq(&self, other: &DitherMode) -> bool
fn eq(&self, other: &DitherMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DitherMode
Auto Trait Implementations§
impl Freeze for DitherMode
impl RefUnwindSafe for DitherMode
impl Send for DitherMode
impl Sync for DitherMode
impl Unpin for DitherMode
impl UnsafeUnpin for DitherMode
impl UnwindSafe for DitherMode
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