routers 0.2.3

Rust-Based Routing Tooling for System-Agnostic Maps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod impls;

use crate::Candidates;
use crate::definition::Layers;
use geo::Point;
pub use impls::*;
use routers_network::Entry;

pub trait LayerGeneration<E: Entry> {
    /// Generate consumes self and returns a pairing of the generated layers,
    /// and the candidate collection from which the layers will reference.
    fn generate(self, input: &[Point]) -> (Layers, Candidates<E>);
}