Trait Values
Source pub trait Values {
type Context;
type Value;
type Output;
// Required methods
fn context(&self) -> Self::Context;
fn value(&self, index: usize) -> Self::Value;
fn output(&self, index: usize) -> Self::Output;
}
Expand description
Trait for providing values for coloring nodes.
The type of context shared across all nodes.
The type of value for each node.
The type of output used for coloring.
Get the value for the node at the given index.
§Panics
May panic if the node index does not exist.
Get the output for the node at the given index.
§Panics
May panic if the node index does not exist.