pub enum TweenError {
InvalidValue,
InvalidInterpolatedValue,
}Expand description
Rejection reason for tween construction, retargeting, or interpolation.
Variants§
InvalidValue
An initial, target, or snapped value violates its interpolation contract.
InvalidInterpolatedValue
A custom interpolation implementation produced an invalid intermediate value.
Trait Implementations§
Source§impl Clone for TweenError
impl Clone for TweenError
Source§fn clone(&self) -> TweenError
fn clone(&self) -> TweenError
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 TweenError
Source§impl Debug for TweenError
impl Debug for TweenError
Source§impl Display for TweenError
impl Display for TweenError
impl Eq for TweenError
Source§impl Error for TweenError
impl Error for TweenError
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 TweenError
impl PartialEq for TweenError
impl StructuralPartialEq for TweenError
Auto Trait Implementations§
impl Freeze for TweenError
impl RefUnwindSafe for TweenError
impl Send for TweenError
impl Sync for TweenError
impl Unpin for TweenError
impl UnsafeUnpin for TweenError
impl UnwindSafe for TweenError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.