pub enum PathError {
InvalidDimension {
dim: usize,
},
InvalidRange {
s_min: f64,
s_max: f64,
},
InvalidOrder {
order: usize,
},
DimensionMismatch,
InvalidSShape {
rows: usize,
cols: usize,
},
NotEnoughWaypoints {
n: usize,
},
OutOfRangeS {
s_min: f64,
s_max: f64,
index: usize,
value: f64,
},
UnsupportedBoundary {
order: usize,
},
SingularSystem,
}Expand description
Error type for path construction and path evaluation APIs.
This error is returned by path-related modules such as Path
and spline utilities when input data, parameter ranges, or numerical systems
are invalid.
Variants§
InvalidDimension
Path dimension is invalid (typically zero).
InvalidRange
Path parameter range is invalid (must satisfy finite s_min < s_max).
InvalidOrder
Spline order is invalid (must satisfy required minimum/order constraints).
DimensionMismatch
Matrix/tensor shapes are incompatible for the requested operation.
InvalidSShape
Input s has invalid matrix shape (must be 1xN or Nx1).
NotEnoughWaypoints
Waypoint sequence is too short to build a valid path.
OutOfRangeS
Query parameter s is outside the configured valid interval.
UnsupportedBoundary
Boundary conditions are not supported for the requested spline order.
SingularSystem
Internal linear system is singular and cannot be solved robustly.
Trait Implementations§
Source§impl Error for PathError
impl Error for PathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for PathError
impl RefUnwindSafe for PathError
impl Send for PathError
impl Sync for PathError
impl Unpin for PathError
impl UnwindSafe for PathError
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
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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.