#[non_exhaustive]pub enum MeshValidationError {
IncompleteTriangle {
index_count: usize,
},
PositionIndexOutOfRange {
index: u32,
position_count: usize,
},
NormalCount {
expected: usize,
actual: usize,
},
NormalIndexCount {
expected: usize,
actual: usize,
},
NormalIndexOutOfRange {
index: u32,
normal_count: usize,
},
AttributeCount {
name: String,
expected: usize,
actual: usize,
},
AttributeZeroWidth {
name: String,
},
AttributeDuplicateName {
name: String,
},
AttributeRaggedValues {
name: String,
values: usize,
width: usize,
},
AttributeCornerCount {
name: String,
expected: usize,
actual: usize,
},
AttributeCornerIndexOutOfRange {
name: String,
index: u32,
value_count: usize,
},
AttributePartiallyMapped {
name: String,
triangle: usize,
},
}Expand description
Cheap structural validation failure.
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.
IncompleteTriangle
Triangle index buffer is not divisible by three.
PositionIndexOutOfRange
Position index does not exist.
NormalCount
Non-indexed normals do not align with positions.
NormalIndexCount
Independently indexed normals do not align with corners.
NormalIndexOutOfRange
Normal index does not exist.
AttributeCount
A channel does not carry one tuple per vertex.
Fields
AttributeZeroWidth
A channel declares a zero tuple width, which covers no vertices.
AttributeDuplicateName
Two channels share a name, so a lookup would be ambiguous.
AttributeRaggedValues
A corner-indexed channel’s values is not whole tuples.
AttributeCornerCount
A corner-indexed channel does not have one entry per triangle corner.
Fields
AttributeCornerIndexOutOfRange
A corner index points past the channel’s values.
Fields
AttributePartiallyMapped
A triangle has some corners mapped and some unmapped.
Trait Implementations§
Source§impl Clone for MeshValidationError
impl Clone for MeshValidationError
Source§fn clone(&self) -> MeshValidationError
fn clone(&self) -> MeshValidationError
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 MeshValidationError
impl Debug for MeshValidationError
Source§impl Display for MeshValidationError
impl Display for MeshValidationError
Source§impl Error for MeshValidationError
impl Error for MeshValidationError
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 MeshValidationError
impl PartialEq for MeshValidationError
impl Eq for MeshValidationError
impl StructuralPartialEq for MeshValidationError
Auto Trait Implementations§
impl Freeze for MeshValidationError
impl RefUnwindSafe for MeshValidationError
impl Send for MeshValidationError
impl Sync for MeshValidationError
impl Unpin for MeshValidationError
impl UnwindSafe for MeshValidationError
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more