pub enum PolarError {
Malformed(String),
InvalidShape(String),
}Expand description
Something wrong with a polar table.
Variants§
Malformed(String)
The text was not a polar table at all – too few lines, or a header or row that did not parse as numbers.
InvalidShape(String)
Parsed, but the shape does not make sense as a table – fewer than two wind speeds or angles, a row of the wrong length, or an axis that is not strictly ascending.
Trait Implementations§
Source§impl Clone for PolarError
impl Clone for PolarError
Source§fn clone(&self) -> PolarError
fn clone(&self) -> PolarError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolarError
impl Debug for PolarError
Source§impl Display for PolarError
impl Display for PolarError
impl Eq for PolarError
Source§impl Error for PolarError
impl Error for PolarError
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 PolarError
impl PartialEq for PolarError
Source§fn eq(&self, other: &PolarError) -> bool
fn eq(&self, other: &PolarError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolarError
Auto Trait Implementations§
impl Freeze for PolarError
impl RefUnwindSafe for PolarError
impl Send for PolarError
impl Sync for PolarError
impl Unpin for PolarError
impl UnsafeUnpin for PolarError
impl UnwindSafe for PolarError
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