pub enum FaceConformanceFailure {
ReturnedError {
case: &'static str,
error: HiddenLineError,
},
MissingRefusal {
case: &'static str,
},
WrongRefusalMesh {
case: &'static str,
expected: Option<MeshId>,
actual: Option<MeshId>,
},
WrongRegions {
case: &'static str,
expected: Vec<VisibleRegion>,
actual: Vec<VisibleRegion>,
},
WrongArea {
case: &'static str,
mesh: MeshId,
source: FaceSource,
expected: f64,
actual: f64,
},
WrongRegionCount {
case: &'static str,
expected: usize,
actual: usize,
},
IncorrectEvidence {
case: &'static str,
},
NonDeterministic {
case: &'static str,
},
OrientationDependent {
case: &'static str,
},
InvalidShape {
case: &'static str,
detail: String,
},
}Variants§
ReturnedError
The provider refused a request it must answer, or refused a request that it must refuse with a different error.
MissingRefusal
The provider answered a request it must refuse.
WrongRefusalMesh
The refusal names the wrong mesh, or none.
WrongRegions
The regions differ from the expected ones.
WrongArea
The total area of the regions of one source is wrong.
WrongRegionCount
The outcome has regions of sources other than the expected ones.
IncorrectEvidence
Evidence disagrees with the request, the outcome or the scene.
NonDeterministic
Two identical requests returned different outcomes.
OrientationDependent
Reversing every triangle changed the outcome.
InvalidShape
A region breaks the shape the contract fixes.
Trait Implementations§
Source§impl Clone for FaceConformanceFailure
impl Clone for FaceConformanceFailure
Source§fn clone(&self) -> FaceConformanceFailure
fn clone(&self) -> FaceConformanceFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FaceConformanceFailure
impl Debug for FaceConformanceFailure
Source§impl PartialEq for FaceConformanceFailure
impl PartialEq for FaceConformanceFailure
impl StructuralPartialEq for FaceConformanceFailure
Auto Trait Implementations§
impl Freeze for FaceConformanceFailure
impl RefUnwindSafe for FaceConformanceFailure
impl Send for FaceConformanceFailure
impl Sync for FaceConformanceFailure
impl Unpin for FaceConformanceFailure
impl UnsafeUnpin for FaceConformanceFailure
impl UnwindSafe for FaceConformanceFailure
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