Skip to main content

GraphNodeAccess

Trait GraphNodeAccess 

Source
pub trait GraphNodeAccess<const I: usize> {
    type Node;

    // Required methods
    fn node_ref(&self) -> &Self::Node;
    fn node_mut(&mut self) -> &mut Self::Node;
}
Expand description

Provides indexed access to a graph node.

This trait is implemented by graph container types (e.g. a generated graph struct) to allow compile-time access to a specific node by index.

§Type Parameters

  • I: The compile-time index of the node within the graph.

Required Associated Types§

Source

type Node

The concrete node type at index I.

Required Methods§

Source

fn node_ref(&self) -> &Self::Node

Immutable access to the node at index I.

Source

fn node_mut(&mut self) -> &mut Self::Node

Mutable access to the node at index I.

Implementors§

Source§

impl<SrcClk: PlatformClock + Send + 'static> GraphNodeAccess<0> for TestPipelineStd<SrcClk>

Source§

type Node = NodeLink<SourceNode<TestCounterSourceTensor<SrcClk, 32>, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, 1>, 0, 1, (), Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>>

Source§

impl<SrcClk: PlatformClock + Send + 'static> GraphNodeAccess<1> for TestPipelineStd<SrcClk>

Source§

type Node = NodeLink<InferenceModel<TestTensorBackend, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, TEST_MAX_BATCH>, 1, 1, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>>

Source§

impl<SrcClk: PlatformClock + Send + 'static> GraphNodeAccess<2> for TestPipelineStd<SrcClk>

Source§

type Node = NodeLink<SinkNode<TestSinkNodeTensor, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, 1>, 1, 0, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, ()>

Source§

impl<SrcClk: PlatformClock> GraphNodeAccess<0> for TestPipeline<SrcClk>

Source§

type Node = NodeLink<SourceNode<TestCounterSourceTensor<SrcClk, 32>, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, 1>, 0, 1, (), Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>>

Source§

impl<SrcClk: PlatformClock> GraphNodeAccess<1> for TestPipeline<SrcClk>

Source§

type Node = NodeLink<InferenceModel<TestTensorBackend, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, TEST_MAX_BATCH>, 1, 1, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>>

Source§

impl<SrcClk: PlatformClock> GraphNodeAccess<2> for TestPipeline<SrcClk>

Source§

type Node = NodeLink<SinkNode<TestSinkNodeTensor, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, 1>, 1, 0, Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, ()>