pub enum CompoundError {
OverlappingRegions {
a: usize,
b: usize,
},
HoleNotInsideOuter {
region: usize,
hole: usize,
},
NestedHoles {
region: usize,
a: usize,
b: usize,
},
}Expand description
Errors from compound-geometry topology validation.
Variants§
OverlappingRegions
Material of region a overlaps material of region b.
HoleNotInsideOuter
Hole hole of region is not fully inside the region’s outer
boundary.
NestedHoles
Hole b of region is nested inside hole a (a hole-within-a-hole).
A single region cannot represent an island of material inside a void,
so nested holes are rejected.
Trait Implementations§
Source§impl Clone for CompoundError
impl Clone for CompoundError
Source§impl Debug for CompoundError
impl Debug for CompoundError
Source§impl Display for CompoundError
impl Display for CompoundError
Source§impl Error for CompoundError
impl Error for CompoundError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CompoundError
impl PartialEq for CompoundError
impl StructuralPartialEq for CompoundError
Auto Trait Implementations§
impl Forget for CompoundError
impl Freeze for CompoundError
impl Move for CompoundError
impl RefUnwindSafe for CompoundError
impl Send for CompoundError
impl Sync for CompoundError
impl Unpin for CompoundError
impl UnsafeUnpin for CompoundError
impl UnwindSafe for CompoundError
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