Skip to main content

ParentPolicy

Trait ParentPolicy 

Source
pub trait ParentPolicy<G>
where G: Graph,
{ type State; // Required methods fn init(graph: &G) -> Self::State; fn save_parent( graph: &G, state: &mut Self::State, from: G::Vertex, to: G::Vertex, ); }

Required Associated Types§

Required Methods§

Source

fn init(graph: &G) -> Self::State

Source

fn save_parent( graph: &G, state: &mut Self::State, from: G::Vertex, to: G::Vertex, )

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<G> ParentPolicy<G> for NoParent
where G: Graph,

Source§

impl<G> ParentPolicy<G> for RecordParent
where G: Graph + VertexMap<Option<<G as Graph>::Vertex>>,

Source§

type State = <G as VertexMap<Option<<G as Graph>::Vertex>>>::Vmap