pub enum ThresholdPreset {
Strict,
Standard,
AntiAlias,
Relaxed,
}Expand description
Named threshold presets for common use cases.
Variants§
Strict
Pixel-perfect: tolerance 0, threshold 0%.
Standard
Default: tolerance 2, threshold 0.1%.
AntiAlias
Tolerant of anti-aliasing and subpixel rendering: tolerance 5, threshold 0.5%.
Relaxed
Lenient for cross-platform use: tolerance 10, threshold 2.0%.
Trait Implementations§
Source§impl Clone for ThresholdPreset
impl Clone for ThresholdPreset
Source§fn clone(&self) -> ThresholdPreset
fn clone(&self) -> ThresholdPreset
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 ThresholdPreset
impl Debug for ThresholdPreset
Source§impl PartialEq for ThresholdPreset
impl PartialEq for ThresholdPreset
Source§fn eq(&self, other: &ThresholdPreset) -> bool
fn eq(&self, other: &ThresholdPreset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ThresholdPreset
impl Eq for ThresholdPreset
impl StructuralPartialEq for ThresholdPreset
Auto Trait Implementations§
impl Freeze for ThresholdPreset
impl RefUnwindSafe for ThresholdPreset
impl Send for ThresholdPreset
impl Sync for ThresholdPreset
impl Unpin for ThresholdPreset
impl UnsafeUnpin for ThresholdPreset
impl UnwindSafe for ThresholdPreset
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