Struct glicol_synth::NodeData
source · 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.
Fields§
§buffers: Vec<Buffer<N>>
§node: T
Implementations§
source§impl<T, const N: usize> NodeData<T, N>
impl<T, const N: usize> NodeData<T, N>
source§impl<const N: usize> NodeData<BoxedNode<N>, N>
impl<const N: usize> NodeData<BoxedNode<N>, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for NodeData<T, N>
impl<T, const N: usize> RefUnwindSafe for NodeData<T, N>where
T: RefUnwindSafe + ?Sized,
impl<T, const N: usize> Send for NodeData<T, N>
impl<T, const N: usize> Sync for NodeData<T, N>
impl<T, const N: usize> Unpin for NodeData<T, N>
impl<T, const N: usize> UnwindSafe for NodeData<T, N>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