Skip to main content

VerticalExtentService

Trait VerticalExtentService 

Source
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§

Source

fn measure_vertical_extent( &self, object: &ObjectId, ) -> Result<VerticalExtent, VerticalExtentError>

The elevations of object’s lowest and highest points.

Provided Methods§

Source

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".

Implementors§