pub enum PointError {
DimMismatch {
expected: usize,
actual: usize,
},
OutOfRange {
size: usize,
rank: usize,
},
}
Expand description
Errors that can occur when constructing or evaluating a Point
.
Variants§
DimMismatch
The number of coordinates does not match the number of dimensions defined by the associated extent.
This occurs when creating a Point
with a coordinate vector
of incorrect length relative to the dimensionality of the
extent.
Fields
OutOfRange
The point is out of range for the extent.
Trait Implementations§
Source§impl Debug for PointError
impl Debug for PointError
Source§impl Display for PointError
impl Display for PointError
Source§impl Error for PointError
impl Error for PointError
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()
Auto Trait Implementations§
impl Freeze for PointError
impl RefUnwindSafe for PointError
impl Send for PointError
impl Sync for PointError
impl Unpin for PointError
impl UnwindSafe for PointError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more