#[non_exhaustive]pub enum TrackShapeViolation {
BoneIndexOutOfRange,
EmptyTimes,
NonFiniteTime,
TimesNotStrictlyIncreasing,
ValueCountMismatch,
ValueTypeMismatchesProperty,
NonFiniteValue,
}Expand description
The way a clip track 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.
BoneIndexOutOfRange
The target bone index is outside Skeleton::bones.
EmptyTimes
The track has no keyframe times.
NonFiniteTime
At least one keyframe time is not finite.
TimesNotStrictlyIncreasing
Keyframe times are not strictly increasing.
ValueCountMismatch
Stored value count disagrees with the interpolation’s key count.
ValueTypeMismatchesProperty
The value storage does not match the targeted property.
NonFiniteValue
At least one stored value is not finite.
Trait Implementations§
Source§impl Clone for TrackShapeViolation
impl Clone for TrackShapeViolation
Source§fn clone(&self) -> TrackShapeViolation
fn clone(&self) -> TrackShapeViolation
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 TrackShapeViolation
Source§impl Debug for TrackShapeViolation
impl Debug for TrackShapeViolation
Source§impl Display for TrackShapeViolation
impl Display for TrackShapeViolation
impl Eq for TrackShapeViolation
Source§impl Error for TrackShapeViolation
impl Error for TrackShapeViolation
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 TrackShapeViolation
impl PartialEq for TrackShapeViolation
impl StructuralPartialEq for TrackShapeViolation
Auto Trait Implementations§
impl Freeze for TrackShapeViolation
impl RefUnwindSafe for TrackShapeViolation
impl Send for TrackShapeViolation
impl Sync for TrackShapeViolation
impl Unpin for TrackShapeViolation
impl UnsafeUnpin for TrackShapeViolation
impl UnwindSafe for TrackShapeViolation
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