PluginBase

Trait PluginBase 

Source
pub unsafe trait PluginBase {
    // Required methods
    fn param_count() -> usize;
    fn param_info(index: usize) -> ParamInfo;
    fn param_ref(&self, param_index: usize) -> ParamRef<'_>;
    fn param_mut(&mut self, param_index: usize) -> ParamMut<'_>;
}
Expand description

Base trait of Plugin which is responsible for setting/getting of plugin parameters.

AVOID implementing it directly. Use the derive macro PluginBase instead.

§Safety

Implementers must verify that the parameter type returned by PluginBase::param_info, PluginBase::param_ref and PluginBase::param_mut agrees with each other.

Required Methods§

Source

fn param_count() -> usize

Source

fn param_info(index: usize) -> ParamInfo

Source

fn param_ref(&self, param_index: usize) -> ParamRef<'_>

Source

fn param_mut(&mut self, param_index: usize) -> ParamMut<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§