pub struct NodeClosure<T: Transcendental, const BUF_SIZE: usize> { /* private fields */ }Expand description
One compiled graph node — owns its algorithm and buffer routing.
Implementations§
Source§impl<T: Transcendental, const BUF_SIZE: usize> NodeClosure<T, BUF_SIZE>
impl<T: Transcendental, const BUF_SIZE: usize> NodeClosure<T, BUF_SIZE>
Sourcepub fn execute(
&mut self,
buffers: &mut [FixedBuffer<T, BUF_SIZE>],
) -> ProcessResult<()>
pub fn execute( &mut self, buffers: &mut [FixedBuffer<T, BUF_SIZE>], ) -> ProcessResult<()>
Execute this node’s algorithm, reading from and writing to the buffer pool.
Sourcepub fn set_param(&mut self, index: usize, value: &ParamValue)
pub fn set_param(&mut self, index: usize, value: &ParamValue)
Set a parameter by index on the owned algorithm.
Auto Trait Implementations§
impl<T, const BUF_SIZE: usize> !RefUnwindSafe for NodeClosure<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> !UnwindSafe for NodeClosure<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Freeze for NodeClosure<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Send for NodeClosure<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Sync for NodeClosure<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Unpin for NodeClosure<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> UnsafeUnpin for NodeClosure<T, BUF_SIZE>
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