pub struct ViewJudgement {
pub outcome: ViewOutcome,
pub reason: Option<String>,
pub landmarks: Vec<FoundLandmark>,
}Expand description
One judgement of the view.
Fields§
§outcome: ViewOutcomeWhat it found.
reason: Option<String>Why the frame may not be drawn on, for the refusals.
landmarks: Vec<FoundLandmark>Every landmark of the calibration as this frame showed it, in its order.
Implementations§
Source§impl ViewJudgement
impl ViewJudgement
Sourcepub fn agreeing(&self) -> Vec<ReferenceLandmark>
pub fn agreeing(&self) -> Vec<ReferenceLandmark>
The largest set of visible landmarks whose offsets all lie within
AGREEMENT_PX of one another: the reference a correction taken on
this frame keeps. Ties go to the set found the more surely.
Sourcepub fn moved(&self, calibration: &CameraCalibration) -> bool
pub fn moved(&self, calibration: &CameraCalibration) -> bool
Whether two or more visible landmarks sit beyond the calibration’s tolerance of their calibrated places.
Trait Implementations§
Source§impl Clone for ViewJudgement
impl Clone for ViewJudgement
Source§impl Debug for ViewJudgement
impl Debug for ViewJudgement
Source§impl PartialEq for ViewJudgement
impl PartialEq for ViewJudgement
impl StructuralPartialEq for ViewJudgement
Auto Trait Implementations§
impl Forget for ViewJudgement
impl Freeze for ViewJudgement
impl Move for ViewJudgement
impl RefUnwindSafe for ViewJudgement
impl Send for ViewJudgementwhere
RawVecInner: Send,
impl Sync for ViewJudgementwhere
RawVecInner: Sync,
impl Unpin for ViewJudgement
impl UnsafeUnpin for ViewJudgementwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FoundLandmark>: UnsafeUnpin,
impl UnwindSafe for ViewJudgementwhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.