Skip to main content

DependencyNode

Trait DependencyNode 

Source
pub trait DependencyNode<T, E>
where T: PartialEq,
{ // Required methods fn id(&self) -> T; fn dependencies(&self) -> Result<Vec<T>, E>; }
Expand description

A node of a dependency graph.

Required Methods§

Source

fn id(&self) -> T

Source

fn dependencies(&self) -> Result<Vec<T>, E>

The dependencies of a node

§Errors

Will return an Err if the dependencies can’t be accessed

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§