pub trait GeometryDecoder {
// Required methods
fn point_cloud(&self) -> Option<&PointCloud>;
fn mesh(&self) -> Option<&Mesh>;
fn corner_table(&self) -> Option<&CornerTable>;
fn get_geometry_type(&self) -> EncodedGeometryType;
// Provided method
fn get_attribute_encoding_method(&self, _att_id: i32) -> Option<i32> { ... }
}Available on crate feature
decoder only.Expand description
Internal geometry context used by attribute decoders.
Required Methods§
Sourcefn point_cloud(&self) -> Option<&PointCloud>
fn point_cloud(&self) -> Option<&PointCloud>
Returns point-cloud geometry when available.
Sourcefn corner_table(&self) -> Option<&CornerTable>
fn corner_table(&self) -> Option<&CornerTable>
Returns mesh corner-table topology when available.
Sourcefn get_geometry_type(&self) -> EncodedGeometryType
fn get_geometry_type(&self) -> EncodedGeometryType
Returns the encoded geometry type.
Provided Methods§
Sourcefn get_attribute_encoding_method(&self, _att_id: i32) -> Option<i32>
fn get_attribute_encoding_method(&self, _att_id: i32) -> Option<i32>
Returns the attribute encoding method for an attribute id, if known.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".