#[non_exhaustive]pub enum MeshInstanceShapeViolation {
NodeIndexOutOfRange,
MeshIndexOutOfRange,
SkinJointOutOfRange,
SkinInverseBindCountMismatch,
NonFiniteSkinInverseBind,
}Expand description
The way a mesh instance is malformed.
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.
NodeIndexOutOfRange
The instance node index is outside Skeleton::bones.
MeshIndexOutOfRange
The mesh index is outside SceneAssets::meshes.
SkinJointOutOfRange
A skin joint index is outside Skeleton::bones.
SkinInverseBindCountMismatch
A non-empty inverse-bind array has a different length from skin joints.
NonFiniteSkinInverseBind
An instance inverse-bind matrix is not finite.
Trait Implementations§
Source§impl Clone for MeshInstanceShapeViolation
impl Clone for MeshInstanceShapeViolation
Source§fn clone(&self) -> MeshInstanceShapeViolation
fn clone(&self) -> MeshInstanceShapeViolation
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 MeshInstanceShapeViolation
Source§impl Debug for MeshInstanceShapeViolation
impl Debug for MeshInstanceShapeViolation
Source§impl Display for MeshInstanceShapeViolation
impl Display for MeshInstanceShapeViolation
impl Eq for MeshInstanceShapeViolation
Source§impl Error for MeshInstanceShapeViolation
impl Error for MeshInstanceShapeViolation
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 StructuralPartialEq for MeshInstanceShapeViolation
Auto Trait Implementations§
impl Freeze for MeshInstanceShapeViolation
impl RefUnwindSafe for MeshInstanceShapeViolation
impl Send for MeshInstanceShapeViolation
impl Sync for MeshInstanceShapeViolation
impl Unpin for MeshInstanceShapeViolation
impl UnsafeUnpin for MeshInstanceShapeViolation
impl UnwindSafe for MeshInstanceShapeViolation
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