pub enum Base {
Black,
White,
Dither25,
Dither50,
Dither75,
DiagonalUp,
DiagonalDown,
HLines,
VLines,
Checker2,
}Expand description
One of the fixed patterns, before any inversion: black and white solids, three ordered dithers, and four kinds of line.
Variants§
Black
Every pixel black.
White
Every pixel white.
Dither25
A quarter of the pixels black, Bayer ordered.
Dither50
Half the pixels black, Bayer ordered: a one-pixel checker.
Dither75
Three quarters of the pixels black, Bayer ordered.
DiagonalUp
Black lines rising to the right, one pixel in four.
DiagonalDown
Black lines falling to the right, one pixel in four.
HLines
Black rows, one in four.
VLines
Black columns, one in four.
Checker2
A checker of 2 × 2 squares.
Implementations§
Trait Implementations§
impl Copy for Base
impl Eq for Base
Source§impl Ord for Base
impl Ord for Base
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Base
impl PartialOrd for Base
impl StructuralPartialEq for Base
Auto Trait Implementations§
impl Freeze for Base
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnsafeUnpin for Base
impl UnwindSafe for Base
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