Struct Clap Parameter Registration
pub struct ClapParameterRegistration<'a, const N: usize> { /* private fields */ }Expand description
Immutable 0..1024-parameter global CLAP metadata registration. Borrows a validated portable schema and ordered consumer options. Plain values remain physical f32 values promoted exactly to f64; logarithmic editor mappings do not change the wire range. Stepped ranges must be contiguous unit-spaced integers; fractional/coarser discrete schemas need a separate wire mapping. Names are complete UTF-8 up to 255 bytes, modules up to 1023 bytes, without NUL. CLAP’s invalid ID is rejected. At most one bypass, with binary range, is allowed. Explicit per-scope flags advertise consumer support. No cookies, value storage, formatting, flush, host rescans or lifecycle policy are synthesized. Construction belongs to preparation; metadata reads do not allocate. Products still implement PluginMainThreadParams.
Implementations§
§impl<'a, const N: usize> ClapParameterRegistration<'a, N>
impl<'a, const N: usize> ClapParameterRegistration<'a, N>
pub fn new( schema: ParameterSchema<'a, N>, options: &'a [ClapParameterOptions<'a>; N], ) -> Result<Self, ClapParameterError>
pub fn count(&self) -> u32
Trait Implementations§
§impl<'a, const N: usize> Clone for ClapParameterRegistration<'a, N>
impl<'a, const N: usize> Clone for ClapParameterRegistration<'a, N>
§fn clone(&self) -> ClapParameterRegistration<'a, N>
fn clone(&self) -> ClapParameterRegistration<'a, N>
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more