#[repr(u32)]pub enum GpuErrorCode {
Success = 0,
RangeError = 1,
NotPositive = 2,
Overflow = 3,
DivByZero = 4,
PrecisionError = 5,
}Expand description
Error codes returned per row from the compute shader (mirrors WGSL constants).
Variants§
Success = 0
Rule passed (calculation rows may still set NumericOutput::calc_value).
RangeError = 1
Value outside an inclusive [param_a, param_b] range (scaled ×100).
NotPositive = 2
Failed NumericRuleKind::MustBePositive.
Overflow = 3
Reserved for overflow signalling in future rule kinds.
DivByZero = 4
FX path with param_a == 0 (rate ×1000).
PrecisionError = 5
NumericRuleKind::MaxPrecision — extra decimal places vs allowed scale.
Trait Implementations§
Source§impl Clone for GpuErrorCode
impl Clone for GpuErrorCode
Source§fn clone(&self) -> GpuErrorCode
fn clone(&self) -> GpuErrorCode
Returns a duplicate of the value. Read more
1.0.0 · 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 GpuErrorCode
impl Debug for GpuErrorCode
Source§impl From<u32> for GpuErrorCode
impl From<u32> for GpuErrorCode
Source§impl PartialEq for GpuErrorCode
impl PartialEq for GpuErrorCode
impl Copy for GpuErrorCode
impl Eq for GpuErrorCode
impl StructuralPartialEq for GpuErrorCode
Auto Trait Implementations§
impl Freeze for GpuErrorCode
impl RefUnwindSafe for GpuErrorCode
impl Send for GpuErrorCode
impl Sync for GpuErrorCode
impl Unpin for GpuErrorCode
impl UnsafeUnpin for GpuErrorCode
impl UnwindSafe for GpuErrorCode
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<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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