#[non_exhaustive]pub struct RecognitionWork {
pub attempts: usize,
pub rounds: usize,
pub exhausted: bool,
pub seeded_components: usize,
pub hypotheses_by_kind: [usize; 5],
pub stops_at_risk_bound: usize,
pub stops_at_hypothesis_cap: usize,
pub stops_at_seed_exhaustion: usize,
pub stops_at_budget: usize,
}Expand description
Work spent by recognize_surfaces_with_attempt_budget.
Non-exhaustive: a later counter is not a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attempts: usizeGeneric hypotheses drawn, over every extraction round of every connected component.
rounds: usizeRegions accepted by generic extraction.
exhausted: boolWhether the budget ran out before extraction finished. The regions are then those accepted before the budget ran out (the round in progress is dropped), so they are a prefix of the unbudgeted run’s.
seeded_components: usizeConnected components accepted whole on a supplied
ComponentCandidate after their own whole fit was refused.
hypotheses_by_kind: [usize; 5]Generic hypotheses drawn per primitive kind, in the recognizer’s kind order (plane, sphere, cylinder, cone, torus).
stops_at_risk_bound: usizeExtraction rounds that stopped because every kind’s miss bound fell
to 1 - confidence (the classical seed bound, or the adaptive
policy’s product bound).
stops_at_hypothesis_cap: usizeExtraction rounds that stopped at max_hypotheses (or at one draw per
remaining triangle per kind, when that is smaller) with the bound not
yet met.
stops_at_seed_exhaustion: usizeExtraction rounds of the adaptive policy that stopped because every remaining triangle had seeded every kind.
stops_at_budget: usizeExtraction rounds cut short by the attempt budget; the round’s
candidates are dropped and exhausted is set.
Trait Implementations§
Source§impl Clone for RecognitionWork
impl Clone for RecognitionWork
Source§fn clone(&self) -> RecognitionWork
fn clone(&self) -> RecognitionWork
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RecognitionWork
Source§impl Debug for RecognitionWork
impl Debug for RecognitionWork
Source§impl Default for RecognitionWork
impl Default for RecognitionWork
Source§fn default() -> RecognitionWork
fn default() -> RecognitionWork
impl Eq for RecognitionWork
Source§impl PartialEq for RecognitionWork
impl PartialEq for RecognitionWork
impl StructuralPartialEq for RecognitionWork
Auto Trait Implementations§
impl Forget for RecognitionWork
impl Freeze for RecognitionWork
impl Move for RecognitionWork
impl RefUnwindSafe for RecognitionWork
impl Send for RecognitionWork
impl Sync for RecognitionWork
impl Unpin for RecognitionWork
impl UnsafeUnpin for RecognitionWork
impl UnwindSafe for RecognitionWork
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.