pub enum SimdSafetyError {
IndexOutOfBounds {
index: usize,
length: usize,
},
InvalidSliceLength {
expected: usize,
actual: usize,
},
ArithmeticOverflow {
operation: String,
values: Vec<f64>,
},
InvalidFloatingPoint {
value: f64,
reason: String,
},
DivisionByZero,
NegativeSquareRoot {
value: f64,
},
InvalidRange {
start: f64,
end: f64,
},
InsufficientData {
required: usize,
available: usize,
},
}Expand description
Enhanced error type for SIMD safety violations
Variants§
IndexOutOfBounds
InvalidSliceLength
ArithmeticOverflow
InvalidFloatingPoint
DivisionByZero
NegativeSquareRoot
InvalidRange
InsufficientData
Trait Implementations§
Source§impl Clone for SimdSafetyError
impl Clone for SimdSafetyError
Source§fn clone(&self) -> SimdSafetyError
fn clone(&self) -> SimdSafetyError
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 moreSource§impl Debug for SimdSafetyError
impl Debug for SimdSafetyError
Source§impl Display for SimdSafetyError
impl Display for SimdSafetyError
Source§impl Error for SimdSafetyError
Available on non-crate feature no-std only.
impl Error for SimdSafetyError
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()
Source§impl PartialEq for SimdSafetyError
impl PartialEq for SimdSafetyError
Source§fn eq(&self, other: &SimdSafetyError) -> bool
fn eq(&self, other: &SimdSafetyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SimdSafetyError
Auto Trait Implementations§
impl Freeze for SimdSafetyError
impl RefUnwindSafe for SimdSafetyError
impl Send for SimdSafetyError
impl Sync for SimdSafetyError
impl Unpin for SimdSafetyError
impl UnsafeUnpin for SimdSafetyError
impl UnwindSafe for SimdSafetyError
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<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