pub struct NodeData<T: ?Sized, const N: usize> {
pub buffers: Vec<Buffer<N>>,
pub node: T,
}
Expand description
For use as the node weight within a dasp graph. Contains the node and its buffers.
For a graph to be compatible with a graph Processor, its node weights must be of type
NodeData<T>
, where T
is some type that implements the Node
trait.
Construct a new NodeData from an instance of its node type and buffers.
Creates a new NodeData with a single buffer.
Creates a new NodeData with two buffers.
Creates a new NodeData with 8 buffers.
The same as new, but boxes the given node data before storing it.
The same as new1, but boxes the given node data before storing it.
The same as new2, but boxes the given node data before storing it.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.