Skip to main content

spatialrust_core/
algorithm.rs

1use crate::{ExecutionPolicy, SpatialResult};
2
3/// Common trait implemented by spatial algorithms.
4pub trait SpatialAlgorithm {
5    /// Human-readable algorithm name.
6    fn name(&self) -> &'static str;
7
8    /// Executes the algorithm using the selected execution policy.
9    fn execute(&self, policy: ExecutionPolicy) -> SpatialResult<()>;
10}