pub enum MovingError {
NegativeValueToUnsignedType,
Overflow,
Underflow,
CountOverflow,
ThresholdReached,
}
Expand description
Represents the possible errors that can occur in the Moving
struct.
Variants§
NegativeValueToUnsignedType
Error indicating that a negative value was attempted to be added to an unsigned type.
Overflow
Error indicating that an overflow occurred during an operation. Note: This is unlikely to occur with floating-point operations.
Underflow
Error indicating that an underflow occurred during an operation.
CountOverflow
Error indicating that the count of values has overflowed.
ThresholdReached
Error indicating that a value has reached or exceeded the specified threshold.
This error is triggered when a value added to the Moving
instance meets or exceeds
the threshold value specified during the creation of the instance. This can be used
to signal that a certain limit has been reached, which might require special handling
or termination of further processing.
Trait Implementations§
Source§impl Clone for MovingError
impl Clone for MovingError
Source§fn clone(&self) -> MovingError
fn clone(&self) -> MovingError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more