pub struct PointCloudHandler;Expand description
Point-cloud coordinate validator.
Implementations§
Source§impl PointCloudHandler
impl PointCloudHandler
Sourcepub fn validate(
value: &Value,
max_points: usize,
field_name: &str,
) -> Result<ValidatedPointCloud, PointCloudError>
pub fn validate( value: &Value, max_points: usize, field_name: &str, ) -> Result<ValidatedPointCloud, PointCloudError>
Validate once and retain both parsed coordinates and canonical JSON.
Sourcepub fn validate_and_canonicalize(
value: &Value,
max_points: usize,
field_name: &str,
) -> Result<Value, PointCloudError>
pub fn validate_and_canonicalize( value: &Value, max_points: usize, field_name: &str, ) -> Result<Value, PointCloudError>
Validate a non-empty JSON point array and return canonical JSON.
Sourcepub fn parse_coordinates(
value: &Value,
max_points: usize,
field_name: &str,
) -> Result<Vec<Coordinate>, PointCloudError>
pub fn parse_coordinates( value: &Value, max_points: usize, field_name: &str, ) -> Result<Vec<Coordinate>, PointCloudError>
Parse a point-cloud JSON array while preserving order and duplicates.
Auto Trait Implementations§
impl Freeze for PointCloudHandler
impl RefUnwindSafe for PointCloudHandler
impl Send for PointCloudHandler
impl Sync for PointCloudHandler
impl Unpin for PointCloudHandler
impl UnsafeUnpin for PointCloudHandler
impl UnwindSafe for PointCloudHandler
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