pub enum CurveError {
Empty,
NotKeyed,
OutsideKeys,
OnAKey,
LevelSegment,
TooManyKeys,
OffThePath,
}Expand description
Why a curve service did not do what was asked.
Variants§
Empty
The value has no keyframes.
NotKeyed
The value is constant, split or bound to data.
OutsideKeys
The time lies outside the keyframes.
OnAKey
A keyframe already lies at the time.
LevelSegment
A part of the segment has no timing curve: its amount is the same at both ends, or the segment is a value curve or a staircase.
TooManyKeys
The result would hold more than MAX_KEYFRAMES keyframes.
OffThePath
The timing curve overshoots at the time, so the value is off the path between the two keyframes.
Trait Implementations§
Source§impl Clone for CurveError
impl Clone for CurveError
impl Copy for CurveError
Source§impl Debug for CurveError
impl Debug for CurveError
Source§impl Display for CurveError
impl Display for CurveError
impl Eq for CurveError
Source§impl Error for CurveError
impl Error for CurveError
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 CurveError
impl PartialEq for CurveError
impl StructuralPartialEq for CurveError
Auto Trait Implementations§
impl Forget for CurveError
impl Freeze for CurveError
impl Move for CurveError
impl RefUnwindSafe for CurveError
impl Send for CurveError
impl Sync for CurveError
impl Unpin for CurveError
impl UnsafeUnpin for CurveError
impl UnwindSafe for CurveError
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