Skip to main content

GraphTypeRef

Trait GraphTypeRef 

Source
pub trait GraphTypeRef<'a>: Clone {
    type Node: Copy + Eq;
    type Edge: Copy + Eq;
}
Expand description

A reference to a basic graph type.

Required Associated Types§

Source

type Node: Copy + Eq

Type of a node.

Source

type Edge: Copy + Eq

Type of an edge.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, G> GraphTypeRef<'a> for &'a G
where G: GraphType,

Source§

type Node = <G as GraphType>::Node<'a>

Source§

type Edge = <G as GraphType>::Edge<'a>

Source§

impl<'a, G> GraphTypeRef<'a> for NonNull<G>
where G: GraphType,

Source§

type Node = <G as GraphType>::Node<'a>

Source§

type Edge = <G as GraphType>::Edge<'a>

Implementors§

Source§

impl<'a, G> GraphTypeRef<'a> for Network<'a, G>
where G: GraphType,

Source§

type Node = <G as GraphType>::Node<'a>

Source§

type Edge = NetworkEdge<<G as GraphType>::Edge<'a>>

Source§

impl<'a, G> GraphTypeRef<'a> for ReverseDigraph<'a, G>
where G: GraphTypeRef<'a>,

Source§

type Node = <G as GraphTypeRef<'a>>::Node

Source§

type Edge = <G as GraphTypeRef<'a>>::Edge