Skip to main content

CoordinateSystemService

Trait CoordinateSystemService 

Source
pub trait CoordinateSystemService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn source_snapshots(&self) -> &[SourceSnapshot];
    fn coordinate_system(
        &self,
        source: &SourceId,
    ) -> Result<SourceCoordinateSystem, CoordinateSystemError>;
}
Expand description

Trusted adapter seam supplying sources’ coordinate systems.

Required Methods§

Source

fn source_snapshots(&self) -> &[SourceSnapshot]

Exact source snapshots this service answers for.

Source

fn coordinate_system( &self, source: &SourceId, ) -> Result<SourceCoordinateSystem, CoordinateSystemError>

The coordinate system of source, or why it cannot be read.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§