pub enum ScalarFieldError {
ZeroDimension,
DimensionsOverflow,
InvalidValueCount {
expected: usize,
actual: usize,
},
NonFiniteValue,
AllocationLimitExceeded {
requested_bytes: usize,
maximum_bytes: usize,
},
AllocationFailed {
requested_bytes: usize,
},
OutOfBounds {
x: usize,
y: usize,
},
}Expand description
Rejection reason for scalar-field construction or mutation.
Variants§
ZeroDimension
Width and height must both be non-zero.
DimensionsOverflow
Width multiplied by height overflowed usize.
InvalidValueCount
Input values did not match the grid dimensions.
NonFiniteValue
A scalar value was NaN or infinite.
AllocationLimitExceeded
A filled field exceeds the explicit host-memory budget.
Fields
AllocationFailed
The allocator rejected a value-buffer reservation within the byte limit.
OutOfBounds
A requested cell lies outside the field dimensions.
Trait Implementations§
Source§impl Clone for ScalarFieldError
impl Clone for ScalarFieldError
impl Copy for ScalarFieldError
Source§impl Debug for ScalarFieldError
impl Debug for ScalarFieldError
Source§impl Display for ScalarFieldError
impl Display for ScalarFieldError
impl Eq for ScalarFieldError
Source§impl Error for ScalarFieldError
impl Error for ScalarFieldError
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 ScalarFieldError
impl PartialEq for ScalarFieldError
impl StructuralPartialEq for ScalarFieldError
Auto Trait Implementations§
impl Freeze for ScalarFieldError
impl RefUnwindSafe for ScalarFieldError
impl Send for ScalarFieldError
impl Sync for ScalarFieldError
impl Unpin for ScalarFieldError
impl UnsafeUnpin for ScalarFieldError
impl UnwindSafe for ScalarFieldError
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.