pub struct PatternMatch {
pub nodes: Vec<NodeId>,
pub external_inputs: Vec<ValueId>,
pub output: ValueId,
}Expand description
A matched occurrence of a FusionPattern in a graph.#[derive(Clone, Debug)]
Fields§
§nodes: Vec<NodeId>Matched node ids, in op-sequence order.
external_inputs: Vec<ValueId>Values consumed by the matched region but produced outside it (graph inputs, initializers, or outputs of non-matched nodes), in first-seen order.
output: ValueIdThe single output of the last matched node — reused as the fused node’s output so downstream wiring is preserved.
Auto Trait Implementations§
impl Freeze for PatternMatch
impl RefUnwindSafe for PatternMatch
impl Send for PatternMatch
impl Sync for PatternMatch
impl Unpin for PatternMatch
impl UnsafeUnpin for PatternMatch
impl UnwindSafe for PatternMatch
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