AUDIO
Source snapshot · 11 November 2026

API reference / ravet_clap::ClapParameterRegistration

Struct ClapParameterRegistration 

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>

pub fn new( schema: ParameterSchema<'a, N>, options: &'a [ClapParameterOptions<'a>; N], ) -> Result<Self, ClapParameterError>

pub fn count(&self) -> u32

pub fn info(&self, index: u32) -> Option<ParamInfo<'a>>

Exact complete metadata; an out-of-range host index returns None.

Trait Implementations§

§

impl<'a, const N: usize> Clone for ClapParameterRegistration<'a, N>

§

fn clone(&self) -> ClapParameterRegistration<'a, N>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'a, const N: usize> Copy for ClapParameterRegistration<'a, N>

§

impl<'a, const N: usize> Debug for ClapParameterRegistration<'a, N>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, const N: usize> Freeze for ClapParameterRegistration<'a, N>

§

impl<'a, const N: usize> RefUnwindSafe for ClapParameterRegistration<'a, N>

§

impl<'a, const N: usize> Send for ClapParameterRegistration<'a, N>

§

impl<'a, const N: usize> Sync for ClapParameterRegistration<'a, N>

§

impl<'a, const N: usize> Unpin for ClapParameterRegistration<'a, N>

§

impl<'a, const N: usize> UnsafeUnpin for ClapParameterRegistration<'a, N>

§

impl<'a, const N: usize> UnwindSafe for ClapParameterRegistration<'a, N>

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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.
§

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

Performs the conversion.