pub struct BoxedNodeSend<const N: usize>(pub Box<dyn Node<N> + Send>);
Expand description
A wrapper around a Box<dyn Node>
.
Provides the necessary Sized
implementation to allow for compatibility with the graph process
function.
Useful when the ability to send nodes from one thread to another is required. E.g. this is
common when initialising nodes or the audio graph itself on one thread before sending them to
the audio thread.
Create a new BoxedNode
around the given node
.
This is short-hand for BoxedNode::from(Box::new(node))
.
Formats the value using the given formatter.
Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.
Converts this type into the (usually inferred) input type.
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.