Skip to main content

PreserveCallback

Type Alias PreserveCallback 

Source
pub type PreserveCallback<H> = dyn Fn(&H, <H as HugrInternals>::Node) -> PreserveNode;
Expand description

Callback that identifies nodes that must be preserved even if their results are not used. For example, (the default) PreserveNode::default_for.