geometric-traits 0.2.0

Trait-based algebraic and graph algorithms for Rust, supporting no_std environments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Submodule defining a builder trait for monoplex graphs.

use crate::traits::MonoplexGraph;

/// Trait for building a monoplex graph.
pub trait MonoplexGraphBuilder {
    /// The graph type that the builder builds.
    type MonoplexGraph: MonoplexGraph;

    #[must_use]
    /// Sets the edges of the graph.
    fn edges(self, edges: <Self::MonoplexGraph as MonoplexGraph>::Edges) -> Self;
}