pub enum Error {
Show 16 variants
IncompatibleType {
method: &'static str,
got: DataType,
},
ConversionUnsupported {
from: DataType,
to: DataType,
},
ParseFailed {
input: String,
target_type: &'static str,
},
IntegerOverflow(TryFromIntError),
EmptySamples,
LastSample,
AnimatedTypeMismatch {
expected: DataType,
got: DataType,
time: Time,
},
VectorLengthExceeded {
actual: usize,
expected: usize,
time: Time,
},
SampleTypeMismatch {
expected: DataType,
got: DataType,
},
InterpolationOnUniform,
BezierNotSupported {
got: DataType,
},
SampleVariantMismatch {
sample_type: &'static str,
got: DataType,
},
EmptyVec {
type_name: &'static str,
},
KeyNotFound,
AnimatedExtraction {
type_name: &'static str,
},
GenericTypeMismatch {
expected: &'static str,
got: &'static str,
},
}Expand description
Error type for token-value-map operations.
Variants§
IncompatibleType
Type conversion method called on incompatible type.
Fields
ConversionUnsupported
Conversion between data types is not supported.
ParseFailed
Failed to parse string as target type.
Fields
IntegerOverflow(TryFromIntError)
Integer conversion overflow.
EmptySamples
Cannot create animated value with no samples.
LastSample
Cannot remove the last sample from animated data.
AnimatedTypeMismatch
Type mismatch in animated samples.
Fields
VectorLengthExceeded
Vector length exceeds expected.
Fields
SampleTypeMismatch
Type mismatch when adding sample to animated value.
InterpolationOnUniform
Cannot set interpolation on uniform value.
BezierNotSupported
Bezier handles only supported for Real type.
SampleVariantMismatch
Sample trait called on wrong variant.
Fields
EmptyVec
Vector type cannot be empty.
KeyNotFound
Key not found in data map.
AnimatedExtraction
Cannot extract value from animated data.
GenericTypeMismatch
Type mismatch (generic version for custom data systems).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more