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

This structure holds all the DSPNodeType definitions and provides them to the crate::JIT and [crate::jit::DSPFunctionTranslator].

Implementations

Create a new instance of this.

Add the given DSPNodeType to this library.

Retrieves a DSPNodeType by it’s name.

Iterate through all types in the Library:

 use synfx_dsp_jit::*;

 let lib = DSPNodeTypeLibrary::new();
 // ...
 lib.for_each(|typ| -> Result<(), ()> {
     println!("Type available: {}", typ.name());
     Ok(())
 }).expect("no error");

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

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.