pub enum Mesh3dError {
InvalidTextureCoordinate,
TextureCoordinateCountMismatch {
vertex_count: usize,
coordinate_count: usize,
},
EmptyVertices,
EmptyGeometry,
InvalidTriangleIndexCount {
index_count: usize,
},
IndexOutOfBounds {
index: u32,
vertex_count: usize,
},
DegenerateTriangle {
triangle: usize,
},
DegenerateDisplayEdge {
start: u32,
end: u32,
},
DuplicateDisplayEdge {
start: u32,
end: u32,
},
AllocationFailed {
requested_bytes: usize,
},
}Expand description
Rejection reason for retained 3D topology.
Variants§
InvalidTextureCoordinate
A U/V component was non-finite or outside normalized 0..=1 bounds.
TextureCoordinateCountMismatch
Textured topology must supply exactly one UV for each model vertex.
Fields
EmptyVertices
A retained mesh requires at least one model-space vertex.
EmptyGeometry
A retained mesh requires at least one triangle or display edge.
InvalidTriangleIndexCount
The triangle index list was not divisible by three.
IndexOutOfBounds
A triangle or display edge referenced a missing vertex.
Fields
DegenerateTriangle
A triangle repeated a vertex or had zero model-space area.
DegenerateDisplayEdge
A display edge used one index twice or referenced coincident vertices.
Fields
DuplicateDisplayEdge
The same undirected display edge appeared more than once.
Fields
AllocationFailed
Temporary validation storage could not be reserved.
Trait Implementations§
Source§impl Clone for Mesh3dError
impl Clone for Mesh3dError
Source§fn clone(&self) -> Mesh3dError
fn clone(&self) -> Mesh3dError
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 moreimpl Copy for Mesh3dError
Source§impl Debug for Mesh3dError
impl Debug for Mesh3dError
Source§impl Display for Mesh3dError
impl Display for Mesh3dError
impl Eq for Mesh3dError
Source§impl Error for Mesh3dError
impl Error for Mesh3dError
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 Mesh3dError
impl PartialEq for Mesh3dError
impl StructuralPartialEq for Mesh3dError
Auto Trait Implementations§
impl Freeze for Mesh3dError
impl RefUnwindSafe for Mesh3dError
impl Send for Mesh3dError
impl Sync for Mesh3dError
impl Unpin for Mesh3dError
impl UnsafeUnpin for Mesh3dError
impl UnwindSafe for Mesh3dError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.