pub enum RatioCandleError {
EmptySeries,
LengthMismatch {
len_a: usize,
len_b: usize,
},
MismatchedTimestamps {
index: usize,
},
DivisionByZero {
index: usize,
},
CandleConstruction {
index: usize,
source: CandleError,
},
}Expand description
Errors from ratio candle synthesis.
Variants§
EmptySeries
One or both input series are empty.
LengthMismatch
Input series have different lengths.
MismatchedTimestamps
Timestamps don’t match at index i.
DivisionByZero
A candle in series B has zero high/low/open/close — cannot divide.
CandleConstruction
Underlying Candle construction failed (e.g., synthetic high < low after unusual inputs — should not happen with positive price data).
Trait Implementations§
Source§impl Debug for RatioCandleError
impl Debug for RatioCandleError
Source§impl Display for RatioCandleError
impl Display for RatioCandleError
Source§impl Error for RatioCandleError
impl Error for RatioCandleError
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 RatioCandleError
impl PartialEq for RatioCandleError
impl Eq for RatioCandleError
impl StructuralPartialEq for RatioCandleError
Auto Trait Implementations§
impl Freeze for RatioCandleError
impl RefUnwindSafe for RatioCandleError
impl Send for RatioCandleError
impl Sync for RatioCandleError
impl Unpin for RatioCandleError
impl UnsafeUnpin for RatioCandleError
impl UnwindSafe for RatioCandleError
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