Module fat

Source
Expand description

We define a type FatNode, named for analogy with a “fat pointer”.

We define a trait FatExt, an extension trait for HugrView. It provides methods that return FatNodes rather than Nodes.

Structs§

FatNode
A Fat Node is a Node along with a reference to the HugrView whence it originates. It carries a type OT, the OpType of that node. OT may be general, i.e. exactly OpType, or specifec, e.g. FuncDefn.

Traits§

FatExt
An extension trait for HugrView which provides methods that delegate to HugrView and then return the result in FatNode form. See for example FatExt::fat_io.