pub struct Graph {
pub nodes: Vec<Node>,
pub by_name: BTreeMap<Arc<str>, SigId>,
pub dep: DepGraph,
pub cuts: Vec<Cut>,
pub sinks: Vec<SigId>,
}Expand description
The signal graph of one program.
Fields§
§nodes: Vec<Node>§by_name: BTreeMap<Arc<str>, SigId>Declared signal names to their vertices. Inner vertices are not in here — they have no name a program can write.
dep: DepGraphThe condensation, for cycles and for order.
cuts: Vec<Cut>§sinks: Vec<SigId>Vertices nothing reads. A view is one; so is a materialised read model.
Implementations§
Source§impl Graph
impl Graph
pub fn node(&self, id: SigId) -> &Node
Sourcepub fn order(&self) -> Vec<SigId> ⓘ
pub fn order(&self) -> Vec<SigId> ⓘ
Every vertex, dependencies before dependents, cycle members adjacent.
pub fn find(&self, f: impl Fn(&Op) -> bool) -> Vec<SigId> ⓘ
Sourcepub fn states(&self) -> Vec<SigId> ⓘ
pub fn states(&self) -> Vec<SigId> ⓘ
The durable accumulators, in declaration order — what the log is of.
pub fn ingress(&self) -> Vec<SigId> ⓘ
pub fn decides(&self) -> Vec<SigId> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more