pub struct Registry<T: Transcendental> { /* private fields */ }Expand description
A collection of built-in definitions.
Implementations§
Source§impl<T: Transcendental> Registry<T>
impl<T: Transcendental> Registry<T>
Sourcepub fn register_sample(
&mut self,
sig: BuiltinSig,
factory: impl Fn(&[f64], f32) -> Box<dyn SampleBuiltin<T>> + Send + Sync + 'static,
)
pub fn register_sample( &mut self, sig: BuiltinSig, factory: impl Fn(&[f64], f32) -> Box<dyn SampleBuiltin<T>> + Send + Sync + 'static, )
Register a per-sample built-in.
Sourcepub fn register_block(
&mut self,
sig: BuiltinSig,
factory: impl Fn(&[f64], f32) -> Box<dyn BlockBuiltin<T>> + Send + Sync + 'static,
)
pub fn register_block( &mut self, sig: BuiltinSig, factory: impl Fn(&[f64], f32) -> Box<dyn BlockBuiltin<T>> + Send + Sync + 'static, )
Register a whole-buffer (Algorithm) built-in.
Sourcepub fn register_multichannel_block(
&mut self,
sig: BuiltinSig,
factory: impl Fn(&[f64], f32) -> Box<dyn MultichannelBlockBuiltin<T>> + Send + Sync + 'static,
)
pub fn register_multichannel_block( &mut self, sig: BuiltinSig, factory: impl Fn(&[f64], f32) -> Box<dyn MultichannelBlockBuiltin<T>> + Send + Sync + 'static, )
Register a whole-buffer multi-channel built-in.
Trait Implementations§
Source§impl<T: Transcendental> Default for Registry<T>
impl<T: Transcendental> Default for Registry<T>
Source§impl<T: Transcendental> SignatureSource for Registry<T>
impl<T: Transcendental> SignatureSource for Registry<T>
Source§fn builtin_sig(&self, name: &str) -> Option<&BuiltinSig>
fn builtin_sig(&self, name: &str) -> Option<&BuiltinSig>
The signature for
name, if registered.Auto Trait Implementations§
impl<T> !RefUnwindSafe for Registry<T>
impl<T> !UnwindSafe for Registry<T>
impl<T> Freeze for Registry<T>
impl<T> Send for Registry<T>
impl<T> Sync for Registry<T>
impl<T> Unpin for Registry<T>
impl<T> UnsafeUnpin for Registry<T>
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