mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-08-04 00:49:17 +00:00
19 lines
493 B
Rust
19 lines
493 B
Rust
#![feature(array_windows)]
|
|
|
|
pub mod dfs;
|
|
mod graph;
|
|
pub use graph::*;
|
|
|
|
pub use petgraph::dot;
|
|
pub use petgraph::dot::Config;
|
|
pub use petgraph::stable_graph::NodeIndex;
|
|
|
|
/// FilialTuple represents a tuple (not really) of a child and any legitimate
|
|
/// parent. Parent can be nullable in the case of the child being a top level
|
|
/// node in the tree.
|
|
#[derive(Hash, PartialEq, Eq, Debug, Clone)]
|
|
pub struct FilialTuple<T, E> {
|
|
pub parent: Option<T>,
|
|
pub child: T,
|
|
pub edges: Vec<E>,
|
|
}
|