pub trait VerticalExtentService:
Send
+ Sync
+ 'static {
// Required method
fn measure_vertical_extent(
&self,
object: &ObjectId,
) -> Result<VerticalExtent, VerticalExtentError>;
// Provided method
fn measure_directional_extent(
&self,
object: &ObjectId,
direction: MetricDirection,
) -> Result<DirectionalExtent, VerticalExtentError> { ... }
}Expand description
Measures the vertical extents of model objects.
Required Methods§
Sourcefn measure_vertical_extent(
&self,
object: &ObjectId,
) -> Result<VerticalExtent, VerticalExtentError>
fn measure_vertical_extent( &self, object: &ObjectId, ) -> Result<VerticalExtent, VerticalExtentError>
The elevations of object’s lowest and highest points.
Provided Methods§
Sourcefn measure_directional_extent(
&self,
object: &ObjectId,
direction: MetricDirection,
) -> Result<DirectionalExtent, VerticalExtentError>
fn measure_directional_extent( &self, object: &ObjectId, direction: MetricDirection, ) -> Result<DirectionalExtent, VerticalExtentError>
The lowest and highest positions of object’s body along
direction.
A service that measures elevations only refuses; it never answers with the vertical extent.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".