pub struct Work {
pub boxes_compared: usize,
pub candidates: usize,
pub booleans: usize,
}Expand description
The work a report took: what the broad phase compared and what the narrow phase ran — counted, not timed (see AGENTS.md “Count the work”).
Fields§
§boxes_compared: usizePairs of boxes compared by the sweep along x.
candidates: usizePairs whose boxes could meet: each looked at closely, or found among those already looked at.
booleans: usizeBooleans run: one per distinct pair of shapes and relative pose
(see [Checked]).
Trait Implementations§
impl Copy for Work
impl Eq for Work
impl StructuralPartialEq for Work
Auto Trait Implementations§
impl Freeze for Work
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnsafeUnpin for Work
impl UnwindSafe for Work
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.