pub struct Tolerance {
pub channel: u8,
pub pixels: usize,
}Expand description
How far a screenshot may drift from its baseline and still match.
Fields§
§channel: u8A pixel differs when one of its channels is off by more than this.
pixels: usizeHow many differing pixels are allowed.
Implementations§
Trait Implementations§
impl Copy for Tolerance
impl Eq for Tolerance
impl StructuralPartialEq for Tolerance
Auto Trait Implementations§
impl Forget for Tolerance
impl Freeze for Tolerance
impl Move for Tolerance
impl RefUnwindSafe for Tolerance
impl Send for Tolerance
impl Sync for Tolerance
impl Unpin for Tolerance
impl UnsafeUnpin for Tolerance
impl UnwindSafe for Tolerance
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