pub enum SeriesError {
DimensionMismatch(usize, usize),
InsufficientPoints(usize),
NonMonotonic,
}Expand description
Error returned when constructing a Series with invalid data.
Variants§
DimensionMismatch(usize, usize)
The x and y arrays have different lengths.
InsufficientPoints(usize)
Fewer than 2 data points were provided.
NonMonotonic
The x-axis is not strictly monotonically increasing.
Trait Implementations§
Source§impl Clone for SeriesError
impl Clone for SeriesError
Source§fn clone(&self) -> SeriesError
fn clone(&self) -> SeriesError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SeriesError
impl Debug for SeriesError
Source§impl Display for SeriesError
impl Display for SeriesError
Source§impl Error for SeriesError
impl Error for SeriesError
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()
Source§impl PartialEq for SeriesError
impl PartialEq for SeriesError
impl StructuralPartialEq for SeriesError
Auto Trait Implementations§
impl Freeze for SeriesError
impl RefUnwindSafe for SeriesError
impl Send for SeriesError
impl Sync for SeriesError
impl Unpin for SeriesError
impl UnsafeUnpin for SeriesError
impl UnwindSafe for SeriesError
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