#[non_exhaustive]pub enum RigInfoError {
InvalidBoneId {
role: &'static str,
bone: usize,
bone_count: usize,
},
BoneNameMismatch {
role: &'static str,
bone: usize,
expected: String,
found: String,
},
}Expand description
Resolved-role evidence did not belong to the supplied document.
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.
InvalidBoneId
A resolved role referenced a bone outside the document’s skeleton.
Fields
BoneNameMismatch
A valid bone index now names a different bone than the resolution did.
Trait Implementations§
Source§impl Clone for RigInfoError
impl Clone for RigInfoError
Source§fn clone(&self) -> RigInfoError
fn clone(&self) -> RigInfoError
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 moreSource§impl Debug for RigInfoError
impl Debug for RigInfoError
Source§impl Display for RigInfoError
impl Display for RigInfoError
impl Eq for RigInfoError
Source§impl Error for RigInfoError
impl Error for RigInfoError
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 RigInfoError
impl PartialEq for RigInfoError
impl StructuralPartialEq for RigInfoError
Auto Trait Implementations§
impl Freeze for RigInfoError
impl RefUnwindSafe for RigInfoError
impl Send for RigInfoError
impl Sync for RigInfoError
impl Unpin for RigInfoError
impl UnsafeUnpin for RigInfoError
impl UnwindSafe for RigInfoError
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