pub enum SurfaceDecision {
Reached(f64),
Blocked,
}Expand description
Decision returned by surface_relevance.
Variants§
Reached(f64)
Surface is fully relevant — confidence in [0.0, 1.0].
Blocked
Hard block — differential is on a different surface than the technique tests.
Implementations§
Source§impl SurfaceDecision
impl SurfaceDecision
Sourcepub fn confidence(self) -> f64
pub fn confidence(self) -> f64
Numeric confidence: Reached(c) → c; Blocked → 0.0.
Trait Implementations§
Source§impl Clone for SurfaceDecision
impl Clone for SurfaceDecision
Source§fn clone(&self) -> SurfaceDecision
fn clone(&self) -> SurfaceDecision
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 SurfaceDecision
impl Debug for SurfaceDecision
Source§impl PartialEq for SurfaceDecision
impl PartialEq for SurfaceDecision
Source§fn eq(&self, other: &SurfaceDecision) -> bool
fn eq(&self, other: &SurfaceDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SurfaceDecision
impl StructuralPartialEq for SurfaceDecision
Auto Trait Implementations§
impl Freeze for SurfaceDecision
impl RefUnwindSafe for SurfaceDecision
impl Send for SurfaceDecision
impl Sync for SurfaceDecision
impl Unpin for SurfaceDecision
impl UnsafeUnpin for SurfaceDecision
impl UnwindSafe for SurfaceDecision
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