#[non_exhaustive]pub enum RetargetError {
JointLimit {
side: SkeletonSide,
count: usize,
},
MetadataLength {
side: SkeletonSide,
joints: usize,
names: usize,
rest: usize,
},
InvalidName {
side: SkeletonSide,
joint: usize,
},
DuplicateName {
side: SkeletonSide,
first: usize,
duplicate: usize,
},
InvalidParent {
side: SkeletonSide,
joint: usize,
},
MissingJoint {
side: SkeletonSide,
joint: usize,
},
HierarchyMismatch {
source_joint: usize,
target_joint: usize,
},
Transform {
side: SkeletonSide,
joint: usize,
error: RetargetTransformError,
},
PoseLength {
required: usize,
actual: usize,
},
Capacity {
required: usize,
available: usize,
},
}Expand description
Indexed authoring, compatibility, capacity or numeric diagnostic.
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.
JointLimit
MetadataLength
InvalidName
DuplicateName
InvalidParent
MissingJoint
HierarchyMismatch
Transform
PoseLength
Capacity
Trait Implementations§
Source§impl Clone for RetargetError
impl Clone for RetargetError
Source§fn clone(&self) -> RetargetError
fn clone(&self) -> RetargetError
Returns a duplicate 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 RetargetError
impl Debug for RetargetError
Source§impl Display for RetargetError
impl Display for RetargetError
Source§impl Error for RetargetError
impl Error for RetargetError
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 RetargetError
impl PartialEq for RetargetError
impl Copy for RetargetError
impl Eq for RetargetError
impl StructuralPartialEq for RetargetError
Auto Trait Implementations§
impl Freeze for RetargetError
impl RefUnwindSafe for RetargetError
impl Send for RetargetError
impl Sync for RetargetError
impl Unpin for RetargetError
impl UnwindSafe for RetargetError
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