pub struct PointSchema { /* private fields */ }Expand description
Schema describing the columns of a point cloud.
Implementations§
Source§impl PointSchema
impl PointSchema
Sourcepub fn with_field(self, field: PointField) -> Self
pub fn with_field(self, field: PointField) -> Self
Adds a field to the schema.
Sourcepub fn fields(&self) -> &[PointField]
pub fn fields(&self) -> &[PointField]
Returns the schema fields.
Sourcepub fn find_semantic(&self, semantic: FieldSemantic) -> Option<&PointField>
pub fn find_semantic(&self, semantic: FieldSemantic) -> Option<&PointField>
Finds a field by semantic.
Sourcepub fn validate_positions(&self) -> SpatialResult<()>
pub fn validate_positions(&self) -> SpatialResult<()>
Validates that required position fields exist exactly once.
Trait Implementations§
Source§impl Clone for PointSchema
impl Clone for PointSchema
Source§fn clone(&self) -> PointSchema
fn clone(&self) -> PointSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointSchema
impl Debug for PointSchema
Source§impl Default for PointSchema
impl Default for PointSchema
Source§fn default() -> PointSchema
fn default() -> PointSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PointSchema
impl<'de> Deserialize<'de> for PointSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PointSchema
impl PartialEq for PointSchema
Source§impl Serialize for PointSchema
impl Serialize for PointSchema
impl Eq for PointSchema
impl StructuralPartialEq for PointSchema
Auto Trait Implementations§
impl Freeze for PointSchema
impl RefUnwindSafe for PointSchema
impl Send for PointSchema
impl Sync for PointSchema
impl Unpin for PointSchema
impl UnsafeUnpin for PointSchema
impl UnwindSafe for PointSchema
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