#[non_exhaustive]pub enum PointCloudError {
NonFinitePoint {
index: usize,
point: Point3,
},
ChannelLengthMismatch {
channel: &'static str,
found: usize,
expected: usize,
},
DegenerateNormal {
index: usize,
normal: Vec3,
},
NonFiniteIntensity {
index: usize,
intensity: Scalar,
},
}Expand description
Why a pointcloud could not be constructed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonFinitePoint
A point has a non-finite coordinate.
Carries the index so a caller can find the offending sample rather than re-scanning the input to locate it.
ChannelLengthMismatch
A channel’s length does not match the point count.
Fields
DegenerateNormal
A normal is not finite, or is too short to carry a direction.
A zero-length normal is refused rather than normalised to an arbitrary axis: the direction is genuinely unknown, and inventing one would be indistinguishable downstream from a measured value.
NonFiniteIntensity
An intensity is not finite.
Trait Implementations§
Source§impl Clone for PointCloudError
impl Clone for PointCloudError
Source§impl Debug for PointCloudError
impl Debug for PointCloudError
Source§impl Display for PointCloudError
impl Display for PointCloudError
Source§impl Error for PointCloudError
impl Error for PointCloudError
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 PointCloudError
impl PartialEq for PointCloudError
impl StructuralPartialEq for PointCloudError
Auto Trait Implementations§
impl Freeze for PointCloudError
impl RefUnwindSafe for PointCloudError
impl Send for PointCloudError
impl Sync for PointCloudError
impl Unpin for PointCloudError
impl UnsafeUnpin for PointCloudError
impl UnwindSafe for PointCloudError
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