#[non_exhaustive]pub enum PointCloudError {
InvalidMaxPoints {
field: String,
configured: usize,
hard_maximum: usize,
},
NotArray {
field: String,
},
Empty {
field: String,
},
TooManyPoints {
field: String,
actual: usize,
maximum: usize,
},
InvalidPoint {
field: String,
index: usize,
source: CoordinateError,
},
SerializedSizeExceeded {
field: String,
actual: usize,
maximum: usize,
},
Canonicalization {
field: String,
source: CoordinateError,
},
}Expand description
Errors produced by point-cloud validation.
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.
InvalidMaxPoints
The configured maximum was outside the supported range.
NotArray
The value was not a JSON array.
Empty
The cloud contained no points.
TooManyPoints
The cloud exceeded its configured point count.
InvalidPoint
One point was malformed or outside the coordinate ranges.
SerializedSizeExceeded
The canonical serialized cloud exceeded the storage safety limit.
Canonicalization
Canonical coordinate conversion failed.
Trait Implementations§
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
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 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