pub enum IndicatorError {
EmptyData,
DifferentDataLength,
ImproperDataLength,
ImproperSetting,
}Expand description
Errors returned by indicator calculation functions.
Variants§
EmptyData
One or more input slices are empty.
DifferentDataLength
Multiple input slices have mismatched lengths.
ImproperDataLength
Input data is too short for the requested period / factor.
ImproperSetting
Configuration is invalid (e.g. zero period, zero/negative factor).
Trait Implementations§
Source§impl Debug for IndicatorError
impl Debug for IndicatorError
Source§impl Display for IndicatorError
impl Display for IndicatorError
Source§impl Error for IndicatorError
impl Error for IndicatorError
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 IndicatorError
impl RefUnwindSafe for IndicatorError
impl Send for IndicatorError
impl Sync for IndicatorError
impl Unpin for IndicatorError
impl UnsafeUnpin for IndicatorError
impl UnwindSafe for IndicatorError
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