pub enum ScreenType {
Dispersed,
Clustered,
StochasticClustered,
}Expand description
Halftone screen type used by ScreenParams.
§Extension policy
Not #[non_exhaustive]: the screen-building code uses exhaustive match; the
compiler ensures new screen types are handled everywhere.
Variants§
Dispersed
Bayer-style dispersed-dot ordered dither.
Chosen automatically below 300 dpi (4 × 4 matrix). The default.
Clustered
Clustered-dot halftone screen.
StochasticClustered
Stochastic clustered-dot screen (64 × 64 matrix, used ≥ 300 dpi).
Trait Implementations§
Source§impl Clone for ScreenType
impl Clone for ScreenType
Source§fn clone(&self) -> ScreenType
fn clone(&self) -> ScreenType
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 moreSource§impl Debug for ScreenType
impl Debug for ScreenType
Source§impl Default for ScreenType
impl Default for ScreenType
Source§fn default() -> ScreenType
fn default() -> ScreenType
Returns the “default value” for a type. Read more
Source§impl Hash for ScreenType
impl Hash for ScreenType
Source§impl PartialEq for ScreenType
impl PartialEq for ScreenType
Source§fn eq(&self, other: &ScreenType) -> bool
fn eq(&self, other: &ScreenType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ScreenType
impl Eq for ScreenType
impl StructuralPartialEq for ScreenType
Auto Trait Implementations§
impl Freeze for ScreenType
impl RefUnwindSafe for ScreenType
impl Send for ScreenType
impl Sync for ScreenType
impl Unpin for ScreenType
impl UnsafeUnpin for ScreenType
impl UnwindSafe for ScreenType
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