pub enum ValidationMode {
Reject,
Repair,
}Expand description
How bars that violate low <= min(open, close) <= max(open, close) <= high are
handled. The default is the same in debug and release builds.
§Examples
use ferrochart_core::data::ValidationMode;
assert_eq!(ValidationMode::default(), ValidationMode::Reject);Variants§
Reject
Return Error::InvalidOhlc.
Repair
Widen high/low to include open/close and report the number of
repaired bars in a ChartEvent::Warning. Non-finite values are still
rejected.
Trait Implementations§
Source§impl Clone for ValidationMode
impl Clone for ValidationMode
impl Copy for ValidationMode
Source§impl Debug for ValidationMode
impl Debug for ValidationMode
Source§impl Default for ValidationMode
impl Default for ValidationMode
impl Eq for ValidationMode
Source§impl PartialEq for ValidationMode
impl PartialEq for ValidationMode
impl StructuralPartialEq for ValidationMode
Auto Trait Implementations§
impl Forget for ValidationMode
impl Freeze for ValidationMode
impl Move for ValidationMode
impl RefUnwindSafe for ValidationMode
impl Send for ValidationMode
impl Sync for ValidationMode
impl Unpin for ValidationMode
impl UnsafeUnpin for ValidationMode
impl UnwindSafe for ValidationMode
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