Trait stack_graphs::stitching::Appendable
source · pub trait Appendable {
// Required methods
fn append_to(
&self,
graph: &StackGraph,
partials: &mut PartialPaths,
path: &mut PartialPath
) -> Result<(), PathResolutionError>;
fn start_node(&self) -> Handle<Node>;
fn end_node(&self) -> Handle<Node>;
fn display<'a>(
&'a self,
graph: &'a StackGraph,
partials: &'a mut PartialPaths
) -> Box<dyn Display + 'a>;
}
Expand description
Something that can be appended to a partial path.
Required Methods§
sourcefn append_to(
&self,
graph: &StackGraph,
partials: &mut PartialPaths,
path: &mut PartialPath
) -> Result<(), PathResolutionError>
fn append_to( &self, graph: &StackGraph, partials: &mut PartialPaths, path: &mut PartialPath ) -> Result<(), PathResolutionError>
Append this appendable to the given path. Resolving jump nodes and renaming unused_variables is part of the responsibility of this method.
sourcefn start_node(&self) -> Handle<Node>
fn start_node(&self) -> Handle<Node>
Return the start node.
sourcefn display<'a>(
&'a self,
graph: &'a StackGraph,
partials: &'a mut PartialPaths
) -> Box<dyn Display + 'a>
fn display<'a>( &'a self, graph: &'a StackGraph, partials: &'a mut PartialPaths ) -> Box<dyn Display + 'a>
Return a Display implementation.