pub enum SimdError {
DimensionMismatch {
expected: usize,
actual: usize,
},
EmptyInput,
UnsupportedPlatform,
UnsupportedOperation(String),
NumericalError(String),
InvalidParameter {
name: String,
value: String,
},
AllocationError,
ExternalLibraryError(String),
InvalidInput(String),
InvalidArgument(String),
NotImplemented(String),
Other(String),
}Expand description
Common error types for SIMD operations
Variants§
DimensionMismatch
Input vectors have mismatched dimensions
EmptyInput
Input data is empty
UnsupportedPlatform
SIMD operation is not supported on this platform
UnsupportedOperation(String)
Operation is not implemented for this type
NumericalError(String)
Numerical error (overflow, underflow, NaN)
InvalidParameter
Invalid parameter value
AllocationError
Memory allocation error
ExternalLibraryError(String)
External library integration error
InvalidInput(String)
Invalid input data
InvalidArgument(String)
Invalid argument provided
NotImplemented(String)
Feature not implemented
Other(String)
Other generic errors
Trait Implementations§
Source§impl Error for SimdError
Available on non-crate feature no-std only.
impl Error for SimdError
Available on non-crate feature
no-std only.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()
Auto Trait Implementations§
impl Freeze for SimdError
impl RefUnwindSafe for SimdError
impl Send for SimdError
impl Sync for SimdError
impl Unpin for SimdError
impl UnsafeUnpin for SimdError
impl UnwindSafe for SimdError
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