pub struct NodeData<T: ?Sized> {
pub buffers: Vec<Buffer>,
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.
Fields§
§buffers: Vec<Buffer>
The buffers to which the node
writes audio data during a call to its process
method.
Generally, each buffer stored within buffers
corresponds to a unique audio channel. E.g.
a node processing mono data would store one buffer, a node processing stereo data would
store two, and so on.
node: T
Implementations§
Source§impl NodeData<BoxedNode>
impl NodeData<BoxedNode>
Auto Trait Implementations§
impl<T> Freeze for NodeData<T>
impl<T> RefUnwindSafe for NodeData<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for NodeData<T>
impl<T> Sync for NodeData<T>
impl<T> Unpin for NodeData<T>
impl<T> UnwindSafe for NodeData<T>where
T: UnwindSafe + ?Sized,
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