#[non_exhaustive]pub struct MinkowskiEvidence {
pub subject_parts: usize,
pub tool_parts: usize,
pub pairwise_sums: usize,
pub boolean_operations: usize,
}Expand description
What was done to produce a Minkowski result.
Reported rather than implied: a caller that asked for a sum of two solids it believed convex should be able to see whether decomposition was needed, and how much work it cost.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.subject_parts: usizeConvex parts the subject was split into.
tool_parts: usizeConvex parts the tool was split into.
pairwise_sums: usizePairwise convex sums performed.
boolean_operations: usizeBoolean operations used to combine them.
Implementations§
Source§impl MinkowskiEvidence
impl MinkowskiEvidence
Sourcepub fn was_convex(&self) -> bool
pub fn was_convex(&self) -> bool
Whether both operands were already convex.
Trait Implementations§
Source§impl Clone for MinkowskiEvidence
impl Clone for MinkowskiEvidence
Source§fn clone(&self) -> MinkowskiEvidence
fn clone(&self) -> MinkowskiEvidence
Returns a copy of the value. Read more
1.0.0 · 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 MinkowskiEvidence
impl Debug for MinkowskiEvidence
Source§impl PartialEq for MinkowskiEvidence
impl PartialEq for MinkowskiEvidence
impl Copy for MinkowskiEvidence
impl Eq for MinkowskiEvidence
impl StructuralPartialEq for MinkowskiEvidence
Auto Trait Implementations§
impl Freeze for MinkowskiEvidence
impl RefUnwindSafe for MinkowskiEvidence
impl Send for MinkowskiEvidence
impl Sync for MinkowskiEvidence
impl Unpin for MinkowskiEvidence
impl UnwindSafe for MinkowskiEvidence
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