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§
Sourcefn source_snapshots(&self) -> &[SourceSnapshot]
fn source_snapshots(&self) -> &[SourceSnapshot]
Exact source snapshots this service answers for.
Sourcefn coordinate_system(
&self,
source: &SourceId,
) -> Result<SourceCoordinateSystem, CoordinateSystemError>
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".