pub enum Probe<E> {
Success,
Error(ProbeResult),
RenderError(E),
}Expand description
Result of running the renderer probe.
Variants§
Success
The probe matched the bundled reference image.
Error(ProbeResult)
The probe did not match the bundled reference image.
RenderError(E)
Rendering the probe scene produces an error.
Implementations§
Source§impl<E> Probe<E>
impl<E> Probe<E>
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true when the probe matched the bundled reference image.
Sourcepub fn from_actual(actual: Pixmap, elements: &[ProbeFeature]) -> Probe<E>
pub fn from_actual(actual: Pixmap, elements: &[ProbeFeature]) -> Probe<E>
Construct a new probe result by inspecting the provided pixmap and comparing it against the reference output.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Probe<E>where
E: Freeze,
impl<E> RefUnwindSafe for Probe<E>where
E: RefUnwindSafe,
impl<E> Send for Probe<E>where
E: Send,
impl<E> Sync for Probe<E>where
E: Sync,
impl<E> Unpin for Probe<E>where
E: Unpin,
impl<E> UnsafeUnpin for Probe<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Probe<E>where
E: UnwindSafe,
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