pub enum BarError {
InvalidPrice(MarketPriceError),
NonFiniteVolume,
NegativeVolume,
InvalidHigh,
InvalidLow,
}Expand description
Errors returned by bar construction.
Variants§
InvalidPrice(MarketPriceError)
One of the price values was invalid.
NonFiniteVolume
Volume must be finite.
NegativeVolume
Volume must not be negative.
InvalidHigh
The high price was lower than open, low, or close.
InvalidLow
The low price was higher than open, high, or close.
Trait Implementations§
Source§impl Error for BarError
impl Error for BarError
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()
impl Copy for BarError
impl Eq for BarError
impl StructuralPartialEq for BarError
Auto Trait Implementations§
impl Freeze for BarError
impl RefUnwindSafe for BarError
impl Send for BarError
impl Sync for BarError
impl Unpin for BarError
impl UnsafeUnpin for BarError
impl UnwindSafe for BarError
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