21 lines
503 B
Rust
21 lines
503 B
Rust
use std::any::Any;
|
|
|
|
#[derive(Default)]
|
|
pub struct Edge
|
|
{
|
|
// Represents the index of the block owning the Out end in the graph
|
|
// And the the output index within that block
|
|
pub from: Option<BlockIOIndex>,
|
|
|
|
// Represents the index of the block owning the In end in the graph
|
|
// And the the input index within that block
|
|
pub to: Option<BlockIOIndex>,
|
|
}
|
|
|
|
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
|
pub struct BlockIOIndex
|
|
{
|
|
pub block_index: usize,
|
|
pub port_index: usize,
|
|
}
|