#[non_exhaustive]pub enum MeshError {
IncompleteTriangles {
index_count: usize,
},
IndexOutOfBounds {
index_position: usize,
index: u16,
vertex_count: usize,
},
NonFiniteVertex {
vertex: usize,
attribute: &'static str,
component: usize,
},
MeshTooLarge {
index_count: usize,
max_indices: usize,
},
StorageCapacity {
live_meshes: usize,
requested_bytes: usize,
available_bytes: usize,
},
IdentityExhausted,
SkinVertexCountMismatch {
expected: usize,
actual: usize,
},
}Expand description
A retained mesh authoring or storage error. All offsets are zero-based.
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.
IncompleteTriangles
IndexOutOfBounds
NonFiniteVertex
MeshTooLarge
StorageCapacity
IdentityExhausted
SkinVertexCountMismatch
Trait Implementations§
Source§impl Error for MeshError
impl Error for MeshError
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()
impl Copy for MeshError
impl Eq for MeshError
impl StructuralPartialEq for MeshError
Auto Trait Implementations§
impl Freeze for MeshError
impl RefUnwindSafe for MeshError
impl Send for MeshError
impl Sync for MeshError
impl Unpin for MeshError
impl UnwindSafe for MeshError
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