pub trait ReverseGraph<const S: usize = DEFAULT_GRAPH_SUCCS_NUM> {
type G: Graph<S>;
// Required methods
fn rev(&self) -> ReversedRefGraph<'_, Self::G, S>;
fn into_rev(self) -> ReversedIntoGraph<Self::G, S>;
}Expand description
Graph type that implements this trait can create reversed graph.
Required Associated Types§
Required Methods§
Sourcefn rev(&self) -> ReversedRefGraph<'_, Self::G, S>
fn rev(&self) -> ReversedRefGraph<'_, Self::G, S>
Reversed graph.
Sourcefn into_rev(self) -> ReversedIntoGraph<Self::G, S>
fn into_rev(self) -> ReversedIntoGraph<Self::G, S>
Reversed graph that consumes the original graph.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".