#[non_exhaustive]pub enum Interference {
Clear,
Touching,
Penetrating,
}Expand description
What two meshes do to each other.
Deliberately three states, not a boolean. A model checker that cannot distinguish “touching” from “overlapping” either floods the report with every abutting wall or silently drops real interferences.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Clear
No triangle pair meets, within the separation tested.
Touching
Triangles meet only at shared vertices, edges, or coplanar contact. Two slabs sharing a face are in contact, not in conflict.
Penetrating
At least one pair crosses transversally: the solids share volume.
Trait Implementations§
Source§impl Clone for Interference
impl Clone for Interference
Source§fn clone(&self) -> Interference
fn clone(&self) -> Interference
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 Interference
impl Debug for Interference
Source§impl PartialEq for Interference
impl PartialEq for Interference
impl Copy for Interference
impl Eq for Interference
impl StructuralPartialEq for Interference
Auto Trait Implementations§
impl Freeze for Interference
impl RefUnwindSafe for Interference
impl Send for Interference
impl Sync for Interference
impl Unpin for Interference
impl UnwindSafe for Interference
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