[][src]Struct dasp_graph::BoxedNode

pub struct BoxedNode(pub Box<dyn Node>);

A wrapper around a Box<dyn Node>.

Provides the necessary Sized implementation to allow for compatibility with the graph process function.

Implementations

impl BoxedNode[src]

pub fn new<T>(node: T) -> Self where
    T: 'static + Node
[src]

Create a new BoxedNode around the given node.

This is short-hand for BoxedNode::from(Box::new(node)).

Methods from Deref<Target = Box<dyn Node>>

Trait Implementations

impl Debug for BoxedNode[src]

impl Deref for BoxedNode[src]

type Target = Box<dyn Node>

The resulting type after dereferencing.

impl DerefMut for BoxedNode[src]

impl<T> From<Box<T>> for BoxedNode where
    T: 'static + Node
[src]

impl Into<Box<dyn Node + 'static>> for BoxedNode[src]

impl Node for BoxedNode[src]

Auto Trait Implementations

impl !RefUnwindSafe for BoxedNode

impl !Send for BoxedNode

impl !Sync for BoxedNode

impl Unpin for BoxedNode

impl !UnwindSafe for BoxedNode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 

impl<T> From<T> for T[src]

impl<S> FromSample<S> for S

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.