pub struct AnyNodeHandle { /* private fields */ }
Expand description

A safe way to store a Handle without the generic parameter, but keep being able to use it

Implementations§

source§

impl AnyNodeHandle

source

pub fn set( &self, channel: impl Into<NodeChannel>, input: impl Into<Input> ) -> &Self

The non-typed way to set an input channel’s value

source

pub fn trig(&self, channel: impl Into<NodeChannel>) -> &Self

The non-typed way to send a trigger to an input channel

Trait Implementations§

source§

impl<A> Add<AnyNodeHandle> for Handle<A>
where A: Copy + HandleData,

§

type Output = Handle<AddHandle>

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNodeHandle) -> Self::Output

Performs the + operation. Read more
source§

impl Add<AnyNodeHandle> for Sample

§

type Output = Handle<AddHandle>

The resulting type after applying the + operator.
source§

fn add(self, rhs: AnyNodeHandle) -> Self::Output

Performs the + operation. Read more
source§

impl<A> Add<Handle<A>> for AnyNodeHandle
where A: Copy + HandleData,

§

type Output = Handle<AddHandle>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Handle<A>) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f32> for AnyNodeHandle

§

type Output = Handle<AddHandle>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Sample) -> Self::Output

Performs the + operation. Read more
source§

impl From<&AnyNodeHandle> for Input

source§

fn from(value: &AnyNodeHandle) -> Self

Converts to this type from the input type.
source§

impl<H: Copy + HandleData + 'static> From<Handle<H>> for AnyNodeHandle

source§

fn from(value: Handle<H>) -> Self

Converts to this type from the input type.
source§

impl HandleData for AnyNodeHandle

source§

fn out_channels(&self) -> SourceChannelIter

All output channels of this Handle in order
source§

fn in_channels(&self) -> SinkChannelIter

All input channels of this Handle in order
source§

fn node_ids(&self) -> NodeIdIter

All NodeIds referenced by this Handle in any order
source§

fn clear_graph_output_connections(&self)

Remove all connections from this handle to any graph output
source§

fn clear_graph_input_connections(&self)

Remove all connections from the graph to this handle
source§

fn clear_input_connections(&self)

Remove all connections to inputs to this handle
source§

fn clear_output_connections(&self)

Remove all connections from outputs from this handle
source§

fn free(&self)

Free the node(s) this handle is pointing to
source§

fn out(&self, channel: impl Into<NodeChannel>) -> Handle<OutputChannelHandle>

Returns a handle to a single channel from this Handle (not type checked)
source§

fn input_handle( &self, channel: impl Into<NodeChannel> ) -> Handle<InputChannelHandle>

Returns a handle to a single channel from this Handle (not type checked)
source§

impl<B> Mul<AnyNodeHandle> for Handle<B>
where B: Copy + HandleData,

§

type Output = Handle<MulHandle>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNodeHandle) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<AnyNodeHandle> for Sample

§

type Output = Handle<MulHandle>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AnyNodeHandle) -> Self::Output

Performs the * operation. Read more
source§

impl<B> Mul<Handle<B>> for AnyNodeHandle
where B: Copy + HandleData,

§

type Output = Handle<MulHandle>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Handle<B>) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f32> for AnyNodeHandle

§

type Output = Handle<MulHandle>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Sample) -> Self::Output

Performs the * operation. Read more
source§

impl<B> Sub<AnyNodeHandle> for Handle<B>
where B: Copy + HandleData,

§

type Output = Handle<SubHandle>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNodeHandle) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<AnyNodeHandle> for Sample

§

type Output = Handle<SubHandle>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AnyNodeHandle) -> Self::Output

Performs the - operation. Read more
source§

impl<B> Sub<Handle<B>> for AnyNodeHandle
where B: Copy + HandleData,

§

type Output = Handle<SubHandle>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Handle<B>) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f32> for AnyNodeHandle

§

type Output = Handle<SubHandle>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Sample) -> Self::Output

Performs the - operation. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Downcast for T
where T: Any,

source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

§

fn into_sample(self) -> T

§

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

§

fn to_sample_(self) -> U

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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